PrepAway - Latest Free Exam Questions & Answers

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application uses the ADO.NET Entity Framework to model entities. The application allows users to make changes while disconnected from the data store. Changes are submitted to the data store by using the SubmitChanges method of the DataContext object. You receive an exception when you call the SubmitChanges method to submit entities that a user has changed in offline mode. You need to ensure that entities changed in offline mode can be successfully updated in the data store. What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Set the ObjectTrackingEnabled property of DataContext to true.

B.
Set the DeferredLoadingEnabled property of DataContext to true.

C.
Call the SaveChanges method of DataContext with a value of false.

D.
Call the SubmitChanges method of DataContext with a value of System.Data.Linq.ConflictMode.ContinueOnConflict.


Leave a Reply