METHOD
PropertyBuilder.IsConcurrencyToken()
Marks a property for optimistic concurrency comparisons.
Formal Syntax & Structure
csharp syntaxcsharp
builder.Entity<StockRow>().Property(r => r.Version).IsConcurrencyToken()Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.builder.Entity<StockRow>().Property(r => r.Version).IsConcurrencyToken()