Skip to content

IEntity.ConcurrencyToken property

Concurrency tokens are used to implement optimistic concurrency control: at each update or delete operation, the token value on the database is compared with the value on the entity. If values match, the operation is executed. If the values do not match, another user is assumed to have performed a write operation in the meantime, and the update is rejected.

public uint ConcurrencyToken { get; set; }

See Also