Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Commented Issue: Reverse engineering does not mark rowversion/timestamp columns as concurrency tokens [588]

$
0
0
Please add a feature to automatically set ConcurrencyMode=Fixed.

EF defaults to no concurrency control (last write wins) which allows lost updates.
Enforcing optimistic concurrency checks can explicitly be configured by setting ConcurrencyMode=Fixed on a RowVersion column.

Having to do this manually when recreating an EF model from a database we risk forgetting it and running without concurrency control. Almost every DB application uses concurrency control and I expect there to be a way to automatically make the setting and not have to manually set it for each table.
Comments: Workaround: http://stackoverflow.com/a/15663868/269512

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>