Microsoft
70-516 · Question #18
70-516 Question #18: Real Exam Question with Answer & Explanation
Sign in or unlock 70-516 to reveal the answer and full explanation for question #18. The question stem and answer options stay visible for context.
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.
Unlock 70-516 to see the answer
You've previewed enough free 70-516 questions. Unlock 70-516 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.