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)- A74% (20)
- B15% (4)
- C7% (2)
- D4% (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.