Share via


ChangeTrackingStrategyConvention Class

Definition

A convention that sets a flag on the model to always skip detecting changes if no entity type is using the Snapshot strategy.

public class ChangeTrackingStrategyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class ChangeTrackingStrategyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type ChangeTrackingStrategyConvention = class
    interface IModelFinalizedConvention
    interface IConvention
type ChangeTrackingStrategyConvention = class
    interface IModelFinalizingConvention
    interface IConvention
Public Class ChangeTrackingStrategyConvention
Implements IModelFinalizedConvention
Public Class ChangeTrackingStrategyConvention
Implements IModelFinalizingConvention
Inheritance
ChangeTrackingStrategyConvention
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

ChangeTrackingStrategyConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of ChangeTrackingStrategyConvention.

Properties

Dependencies

Dependencies for this service.

Methods

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called after a model is finalized.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called when a model is being finalized.

Applies to