Share via


IConventionTypeBase.SetChangeTrackingStrategy Metodo

Definizione

Imposta la strategia di rilevamento delle modifiche da usare per questo tipo. Questa strategia indica come il contesto rileva le modifiche alle proprietà per un'istanza del tipo.

public Microsoft.EntityFrameworkCore.ChangeTrackingStrategy? SetChangeTrackingStrategy (Microsoft.EntityFrameworkCore.ChangeTrackingStrategy? changeTrackingStrategy, bool fromDataAnnotation = false);
abstract member SetChangeTrackingStrategy : Nullable<Microsoft.EntityFrameworkCore.ChangeTrackingStrategy> * bool -> Nullable<Microsoft.EntityFrameworkCore.ChangeTrackingStrategy>
Public Function SetChangeTrackingStrategy (changeTrackingStrategy As Nullable(Of ChangeTrackingStrategy), Optional fromDataAnnotation As Boolean = false) As Nullable(Of ChangeTrackingStrategy)

Parametri

changeTrackingStrategy
Nullable<ChangeTrackingStrategy>

Strategia da usare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata usando un'annotazione dati.

Restituisce

Il valore configurato.

Si applica a