DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp uses this service to connect to a MS SQL Server 2008 database
PassGuideDB.
To access data from PassGuideDB ADO.NET Entity Framework is used.
Even if PassGuideDB is disconnected the users should be able to make changes. That is
these changes made in offline mode changes must be updated in PassGuideDB.
At the moment when you use Submit changes method, from the data context, is used to
save offline entities then an exception is received.
What action should you take to remedy this problem?
What action should you take to remedy this problem?
DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp uses this service to connect to a MS SQL Server 2008 database
PassGuideDB.
To access data from PassGuideDB ADO.NET Entity Framework is used.
Even if PassGuideDB is disconnected the users should be able to make changes. That is
these changes made in offline mode changes must be updated in PassGuideDB.
At the moment when you use Submit changes method, from the data context, is used to
save offline entities then an exception is received.
What action should you take to remedy this problem?
See http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.objecttrackingenabled%28v=vs.110%29.aspx
An exception is thrown if the property is set to false and SubmitChanges is called.
So the following answer is correct:
Change property…
OjectTrackingEnabled
…to…
true
Not sure why there is room for Action #2, and if it can be left blank.
The question says you are using Entity Framework. That how can you use DataContext? Im confused.