PrepAway - Latest Free Exam Questions & Answers

How can this be achieved?

There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp uses the ADO.NET Entity Framework.
PassGuideApp uses POCO entities.
PassGuideApp uses snapshot-based change tracking.
When the object graph is changed the state manager must synchronize?

How can this be achieved? Select two.
Note: Plain Old CLR Obects: POCO

PrepAway - Latest Free Exam Questions & Answers

A.
Use the DataContext …

B.
Use the ObjectContext …

C.
…Refresh method.

D.
…Attach method.

E.
…DetectChanges method.

F.
…ApplyPropertyChanges method.

G.
…ApplyChanges method.

H.
…SaveChanges method.

Explanation:

One Comment on “How can this be achieved?

  1. John Galt says:

    http://msdn.microsoft.com/en-us/library/vstudio/dd456848%28v=vs.100%29.aspx

    When creation of proxy objects is disabled, changes that are made to the object graph are not tracked automatically by the Entity Framework as they occur. You must instead use the DetectChanges method to report changes.

    When an object is attached to the context, a snapshot is taken of its property values. When the DetectChanges method is called, the attached object graph is synchronized with the ObjectStateManager.




    0



    0

Leave a Reply