MutableModelExtensions.SetChangeTrackingStrategy Method

Definition

Overloads

SetChangeTrackingStrategy(IMutableModel, ChangeTrackingStrategy)

Sets the default change tracking strategy to use for entities in the model. This strategy indicates how the context detects changes to properties for an instance of an entity type.

SetChangeTrackingStrategy(IMutableModel, Nullable<ChangeTrackingStrategy>)

Sets the default change tracking strategy to use for entities in the model. This strategy indicates how the context detects changes to properties for an instance of an entity type.

SetChangeTrackingStrategy(IMutableModel, ChangeTrackingStrategy)

Sets the default change tracking strategy to use for entities in the model. This strategy indicates how the context detects changes to properties for an instance of an entity type.

public static void SetChangeTrackingStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Microsoft.EntityFrameworkCore.ChangeTrackingStrategy changeTrackingStrategy);
static member SetChangeTrackingStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Microsoft.EntityFrameworkCore.ChangeTrackingStrategy -> unit
<Extension()>
Public Sub SetChangeTrackingStrategy (model As IMutableModel, changeTrackingStrategy As ChangeTrackingStrategy)

Parameters

model
IMutableModel

The model to set the default change tracking strategy for.

changeTrackingStrategy
ChangeTrackingStrategy

The strategy to use.

Applies to

SetChangeTrackingStrategy(IMutableModel, Nullable<ChangeTrackingStrategy>)

Sets the default change tracking strategy to use for entities in the model. This strategy indicates how the context detects changes to properties for an instance of an entity type.

public static void SetChangeTrackingStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Microsoft.EntityFrameworkCore.ChangeTrackingStrategy? changeTrackingStrategy);
static member SetChangeTrackingStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<Microsoft.EntityFrameworkCore.ChangeTrackingStrategy> -> unit
<Extension()>
Public Sub SetChangeTrackingStrategy (model As IMutableModel, changeTrackingStrategy As Nullable(Of ChangeTrackingStrategy))

Parameters

model
IMutableModel

The model to set the default change tracking strategy for.

changeTrackingStrategy
Nullable<ChangeTrackingStrategy>

The strategy to use.

Applies to