From http://www.ladislavmrnka.com/2012/09/entity-framework-and-pessimistic-concurrency/