EF defaults to no concurrency control (last write wins) which allows lost updates. Enforcing optimistic concurrency checks can explicitly be configured by setting Concurrenc
I got bored with setting ConcurrencyMode manually, so I wrote a tiny utility to automate it. You can either use it to set the mode for certain types (timestamp/rowversion) or for column names matching certain regex patterns.
http://blog.wezeku.com/2014/04/28/fixefconcurrencymodes/
https://github.com/wezeku/FixEFConcurrencyModes