Entity Framework IsRowVersion() without concurrency check

后端 未结 1 846
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-21 10:36

We have a table that has a column called Version that is mapped as a SQL rowversion. This is done because we have an external system that maps to o

相关标签:
1条回答
  • 2020-12-21 11:08

    By default EF implies row version type to be a optimistic concurrency token (included in the optimistic concurrency checks).

    You can override that behavior by using the IsConcurrencyToken fluent API:

    Property(t => t.Version).IsRowVersion().IsConcurrencyToken(false);
    
    0 讨论(0)
提交回复
热议问题