MutableEntityTypeExtensions.SetChangeTrackingStrategy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetChangeTrackingStrategy(IMutableEntityType, ChangeTrackingStrategy) |
Sets the change tracking strategy to use for this entity type. This strategy indicates how the context detects changes to properties for an instance of the entity type. |
SetChangeTrackingStrategy(IMutableEntityType, Nullable<ChangeTrackingStrategy>) |
Sets the change tracking strategy to use for this entity type. This strategy indicates how the context detects changes to properties for an instance of the entity type. |
SetChangeTrackingStrategy(IMutableEntityType, ChangeTrackingStrategy)
Sets the change tracking strategy to use for this entity type. This strategy indicates how the context detects changes to properties for an instance of the entity type.
public static void SetChangeTrackingStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.ChangeTrackingStrategy changeTrackingStrategy);
static member SetChangeTrackingStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.ChangeTrackingStrategy -> unit
<Extension()>
Public Sub SetChangeTrackingStrategy (entityType As IMutableEntityType, changeTrackingStrategy As ChangeTrackingStrategy)
Parameters
- entityType
- IMutableEntityType
The entity type to set the change tracking strategy for.
- changeTrackingStrategy
- ChangeTrackingStrategy
The strategy to use.
Applies to
SetChangeTrackingStrategy(IMutableEntityType, Nullable<ChangeTrackingStrategy>)
Sets the change tracking strategy to use for this entity type. This strategy indicates how the context detects changes to properties for an instance of the entity type.
public static void SetChangeTrackingStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.ChangeTrackingStrategy? changeTrackingStrategy);
static member SetChangeTrackingStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<Microsoft.EntityFrameworkCore.ChangeTrackingStrategy> -> unit
<Extension()>
Public Sub SetChangeTrackingStrategy (entityType As IMutableEntityType, changeTrackingStrategy As Nullable(Of ChangeTrackingStrategy))
Parameters
- entityType
- IMutableEntityType
The entity type.
- changeTrackingStrategy
- Nullable<ChangeTrackingStrategy>
The strategy to use.
Applies to
Entity Framework