nerdexam
Microsoft

70-516 · Question #144

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application. You use the ADO.NET Entity Framework Designer to model entities as shown in the following diagram…

The correct answer is A. Detach person1 from objectContext1. See the full explanation below for the reasoning.

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application. You use the ADO.NET Entity Framework Designer to model entities as shown in the following diagram. You create an ObjectContext instance named objectContext1 and use it to create a SalesPerson instance named person1. You create an ObjectContext instance named objectContext2 and use it to create a SalesTerritory instance named territory1. You need to create and persist a relationship between person1 and terrotory1. What should you do?

Exhibit

70-516 question #144 exhibit

Options

  • ADetach person1 from objectContext1.
  • BAttach person1 to objectContext2.
  • CDetach person1 from objectContext1.
  • DAttach person1 to objectContext2.

How the community answered

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

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice