nerdexam
Microsoft

70-516 · Question #75

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 ensure that the entities…

The correct answer is C. Add an ADO.NET Self-Tracking Entity Generator to the model. The ADO.NET Self-Tracking Entity Generator text template generates the object-layer code that consists of a custom typed ObjectContext and entity classes that contain self-tracking state logic so that the entities themselves keep track of their state instead of ObjectContext…

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 ensure that the entities are self-tracking. What should you do in the ADO.NET Entity Framework Designer?

Options

  • AChange the Code Generation Strategy option from Default to None.
  • BChange the Transform Related Text Templates On Save option to False.
  • CAdd an ADO.NET Self-Tracking Entity Generator to the model.
  • DAdd an ADO.NET EntityObject Generator to the model.

How the community answered

(41 responses)
  • A
    7% (3)
  • B
    5% (2)
  • C
    85% (35)
  • D
    2% (1)

Explanation

The ADO.NET Self-Tracking Entity Generator text template generates the object-layer code that consists of a custom typed ObjectContext and entity classes that contain self-tracking state logic so that the entities themselves keep track of their state instead of ObjectContext doing so. Probably the best usage of self-tracking entities is when working with N-tier applications. CHAPTER 6 ADO.NET Entity Framework Lesson 1: What Is the ADO.NET Entity Framework? The Self-Tracking Entity Generator (page 405) ADO.NET Self-Tracking Entity Generator Template

Topics

#self-tracking entities#Entity Framework Designer#code generation strategy#ADO.NET

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice