Which two actions should you perform?

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.)

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.)

A.
Modify each mapped property to contain sealed and protected accessors.

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.

D.
Configure the navigation property to return a type that implements the IQueryable interface.

E.
Configure the navigation property to return a type that implements the IEntityWithRelationships interface.

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



Leave a Reply 0

Your email address will not be published. Required fields are marked *