nerdexam
Microsoft

70-516 · Question #128

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 Plain Old CLR Objects (POCO) entities. You…

The correct answer is B. Modify each mapped property to contain non-sealed, public, and virtual accessors. C. Configure the navigation property to return a type that implements the ICollection interface. CHAPTER 6 ADO.NET Entity Framework Lesson 1: What Is the ADO.NET Entity Framework? Other POCO Considerations (page 412)

Implementing Data Access

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 Plain Old CLR Objects (POCO) entities. You create a new POCO class. You need to ensure that the class meets the following requirements:

  • It can be used by an ObjectContext.
  • It is enabled for change-tracking proxies.

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AModify each mapped property to contain sealed and protected accessors.
  • BModify each mapped property to contain non-sealed, public, and virtual accessors.
  • CConfigure the navigation property to return a type that implements the ICollection interface.
  • DConfigure the navigation property to return a type that implements the IQueryable interface.
  • EConfigure the navigation property to return a type that implements the

How the community answered

(58 responses)
  • A
    9% (5)
  • B
    71% (41)
  • D
    3% (2)
  • E
    17% (10)

Explanation

CHAPTER 6 ADO.NET Entity Framework Lesson 1: What Is the ADO.NET Entity Framework? Other POCO Considerations (page 412)

Topics

#POCO#change-tracking proxy#virtual properties#ICollection

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice