Table of Contents

Class ChangeTrackingStrategyConvention

Namespace
Microsoft.EntityFrameworkCore.Metadata.Conventions
Assembly
Microsoft.EntityFrameworkCore.dll

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 : IModelFinalizingConvention, IConvention
Inheritance
ChangeTrackingStrategyConvention
Implements
Inherited Members

Remarks

See Model building conventions for more information and examples.

Constructors

ChangeTrackingStrategyConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of ChangeTrackingStrategyConvention.

public ChangeTrackingStrategyConvention(ProviderConventionSetBuilderDependencies dependencies)

Parameters

dependencies ProviderConventionSetBuilderDependencies

Parameter object containing dependencies for this convention.

Properties

Dependencies

Dependencies for this service.

protected virtual ProviderConventionSetBuilderDependencies Dependencies { get; }

Property Value

ProviderConventionSetBuilderDependencies

Methods

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

public virtual void ProcessModelFinalizing(IConventionModelBuilder modelBuilder, IConventionContext<IConventionModelBuilder> context)

Parameters

modelBuilder IConventionModelBuilder
context IConventionContext<IConventionModelBuilder>