Share via


RuntimeProperty.IReadOnlyProperty.IsConcurrencyToken Property

Definition

Gets a value indicating whether this property is used as a concurrency token. When a property is configured as a concurrency token the value in the database will be checked when an instance of this entity type is updated or deleted during SaveChanges() to ensure it has not changed since the instance was retrieved from the database. If it has changed, an exception will be thrown and the changes will not be applied to the database.

bool Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.IsConcurrencyToken { [System.Diagnostics.DebuggerStepThrough] get; }
[<get: System.Diagnostics.DebuggerStepThrough>]
member this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.IsConcurrencyToken : bool
 ReadOnly Property IsConcurrencyToken As Boolean Implements IReadOnlyProperty.IsConcurrencyToken

Property Value

Implements

Attributes

Applies to