You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 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?
A.
Set the Value property of the EntityReference of the Order entity.
B.
Call the Add method on the EntityCollection of the Order entity.
C.
Use the AddObject method of the ObjectContext to add both Order and Customer entities.
D.
Use the Attach method of the ObjectContext to add both Order and Customer entities.
Explanation:
Entity Reference (Of Entity) Represents a related end of an association with a multiplicity of zero or
one.