DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp is running on a server PassGuideSrv.
PassGuideApp uses this service to connect to a MS SQL Server 2008 database PassGuideDB
located on a separate server PassGuideData.
To access employee data from PassGuideDB ADO.NET Entity Framework is used, here it
models persistence-ignorant entities.
PassGuideApp runs in disconnected mode.
Changes to the data can be made locally, in disconnected mode, on PassGuideSrv.
Which method should be used to ensure that these entities are persisted to PassGuideSrv?
Which method should be used to ensure that these entities are persisted to PassGuideSrv?
DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp is running on a server PassGuideSrv.
PassGuideApp uses this service to connect to a MS SQL Server 2008 database PassGuideDB
located on a separate server PassGuideData.
To access employee data from PassGuideDB ADO.NET Entity Framework is used, here it
models persistence-ignorant entities.
PassGuideApp runs in disconnected mode.
Changes to the data can be made locally, in disconnected mode, on PassGuideSrv.
Which method should be used to ensure that these entities are persisted to PassGuideSrv?
http://msdn.microsoft.com/en-us/library/system.data.objects.objectstateentry.setmodifiedproperty%28v=vs.110%29.aspx
ObjectStateEntry.SetModifiedProperty marks the specified property as modified.
Marking a property as modified forces an update to be send to the database for the property when SaveChanges is called.