PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the entities are self-tracking

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 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?

PrepAway - Latest Free Exam Questions & Answers

A.
Change the Code Generation Strategy option from Default to None.

B.
Change the Transform Related Text Templates On Save option to False.

C.
Add an ADO.NET Self-Tracking Entity Generator to the model.

D.
Add an ADO.NET EntityObject Generator to the model.

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
(http://msdn.microsoft.com/en-us/library/ff477604.aspx)


Leave a Reply