Optimistic Concurrency Control with MS Entity Framework and WCF or Webservices
October 26th, 2008
2 comments
The Entity Framework makes it very simple to implement Optimistic Concurrency Control (OCC). To use this feature in combination with a disconnected application (Website/webservices), the recommend practice is to send both the original and the updated values of the object. This causes much larger network requests and could be done much more elegant.
How to use Optimistic Concurrency Control in ADO.Net Entity Framework using Webservices or WCF
Optimistic Concurrency Control in Entity framework
For using OCC in the Entity Framework you’ve got 2 options:
- using Stored Procedures
- Set the Concurrency Property of an object.