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 Submit changes method of the Data Context object You receive an exception when you call
me Submit changes 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 m the data store. What
should you do?
A.
Set the Object Tracking Enabled property of Data Context to true.
B.
Set the Deferred Loading Enabled property of Data Context to true.
C.
Call the Save Changes method of DataContext with a value of false
D.
Call the Submit Changes method of Data Context with a value of System Data Linq
ConflictMode ContinueOnCornflict
Explanation:
ObjectTrackingEnabled Instructs the framework to track the original value and object identity for this
DataContext.
ObjectTrackingEnabled Property
(http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.objecttrackingenabled.aspx)