How to automate setting ConcurrencyMode=Fixed on all RowVersion columns?

前端 未结 7 1431
攒了一身酷
攒了一身酷 2021-01-04 13:03

EF defaults to no concurrency control (last write wins) which allows lost updates. Enforcing optimistic concurrency checks can explicitly be configured by setting Concurrenc

7条回答
  •  Happy的楠姐
    2021-01-04 13:11

    In EF6 the designer will set ConcurrencyMode=Fixed on rowversion columns when creating a model from the database.See Designer: Automate setting ConcurrencyMode=Fixed on rowversion columns. Until then we will have to do this manually.

提交回复
热议问题