nerdexam
Microsoft

70-516 · Question #18

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. The application uses the ADO.NET Entity Framework to manage customer and related order records. You…

The correct answer is A. Set the Value property of the EntityReference of the Order entity. Entity Reference (Of Entity) Represents a related end of an association with a multiplicity of zero

Manipulating and Validating Data

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. The application uses the ADO.NET Entity Framework to manage customer and related order records. You add a new order for an existing customer. You need to associate the Order entity with the Customer entity. What should you do?

Options

  • ASet the Value property of the EntityReference of the Order entity.
  • BCall the Add method on the EntityCollection of the Order entity.
  • CUse the AddObject method of the ObjectContext to add both Order and Customer entities.
  • DUse the Attach method of the ObjectContext to add both Order and Customer entities.

How the community answered

(27 responses)
  • A
    74% (20)
  • B
    15% (4)
  • C
    7% (2)
  • D
    4% (1)

Explanation

Entity Reference (Of Entity) Represents a related end of an association with a multiplicity of zero

Topics

#Entity Framework#EntityReference#entity association#ObjectContext

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice