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

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

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:



Leave a Reply 1

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


John Galt

John Galt

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.