Wednesday, February 8, 2012

Optimistic concurrency in Entity Framework

To enable optimistic concurrency checking mark Entity property to be monitored for concurrency checking with attribute 'Concurrency Mode' as 'Fixed'. This can be done in properties window for a Entity property of interest in Entity Designer.

If any conflict occurs OptimisticConcurrencyException will be thrown. 

No comments:

Post a Comment