Sdílet prostřednictvím


IConventionTypeBase.SetChangeTrackingStrategy Metoda

Definice

Nastaví strategii sledování změn, která se má použít pro tento typ. Tato strategie označuje, jak kontext detekuje změny vlastností pro instanci typu.

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)

Parametry

changeTrackingStrategy
Nullable<ChangeTrackingStrategy>

Strategie, která se má použít.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Nakonfigurovaná hodnota.

Platí pro