nerdexam
Microsoft

70-516 · Question #101

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. You need to create a Plain Old CLR…

The correct answer is A. Create a custom data class that has a Protected constructor that does not have parameters. Requirements for Creating POCO Proxies

Implementing Data Access

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. You need to create a Plain Old CLR Object (POCO) class that can be used with the ObjectContext.CreateObject method to create a proxy. What should you do?

Options

  • ACreate a custom data class that has a Protected constructor that does not have parameters.
  • BCreate a custom data class in which all properties and methods are virtual.
  • CCreate a custom data class that is abstract.
  • DCreate a custom data class that is sealed.

How the community answered

(26 responses)
  • A
    81% (21)
  • B
    4% (1)
  • C
    4% (1)
  • D
    12% (3)

Explanation

Requirements for Creating POCO Proxies

Topics

#POCO#Entity Framework proxy#CreateObject#constructor requirements

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice