You need to connect the existing POCO classes to an Entity Framework context

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to enhance an existing
application to use the Entity Framework. The classes that represent the entities in the model are
Plain Old CLR Object (POCO) classes. You need to connect the existing POCO classes to an Entity
Framework context. What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to enhance an existing
application to use the Entity Framework. The classes that represent the entities in the model are
Plain Old CLR Object (POCO) classes. You need to connect the existing POCO classes to an Entity
Framework context. What should you do?

A.
1. Generate a MetadataWorkspace and create an ObjectContext for the model.
2. Disable proxy object creation on the ContextOptions of the ObjectContext.
3. Enable lazy loading on the ContextOptions of the ObjectContext.

B.
1. Generate a MetadataWorkspace and create an ObjectContext for the model.
2. Create an ObjectSet for the POCO classes.
3. Disable proxy object creation on the ContextOptions of the ObjectContext.

C.
1. Generate an Entity Data Model for the POCO classes.
2. Create an ObjectSet for the POCO classes.
3. Disable proxy object creation on the ContextOptions of the ObjectContext.

4. Enable lazy loading on the ContextOptions of the ObjectContext.

D.
1. Generate an Entity Data Model for the POCO classes.
2. Create an ObjectSet for the POCO classes.
3. Set Code Generation Strategy on the Entity Data Model to none.
4. Create an ObjectContext for the model.



Leave a Reply 0

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