RuntimeProperty.IReadOnlyProperty.IsConcurrencyToken Proprietà

Definizione

Ottiene un valore che indica se questa proprietà viene utilizzata come token di concorrenza. Quando una proprietà è configurata come token di concorrenza, il valore nel database verrà controllato quando un'istanza di questo tipo di entità viene aggiornata o eliminata durante SaveChanges() per assicurarsi che non sia stata modificata dopo che l'istanza è stata recuperata dal database. Se è stata modificata, verrà generata un'eccezione e le modifiche non verranno applicate al 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

Valore della proprietà

Implementazioni

Attributi

Si applica a