API

IsConcurrencyToken

Includes the original property value in optimistic concurrency checks.

Formal Syntax & Structure

csharp syntaxcsharp
model.Entity<Book>().Property(b => b.Revision).IsConcurrencyToken()

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.model.Entity<Book>().Property(b => b.Revision).IsConcurrencyToken()
C# & .NET Reference