Share via


SqlServerTemporalConvention Class

Definition

A convention that manipulates temporal settings for an entity mapped to a temporal table.

public class SqlServerTemporalConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
public class SqlServerTemporalConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
type SqlServerTemporalConvention = class
    interface IEntityTypeAnnotationChangedConvention
    interface IConvention
    interface ISkipNavigationForeignKeyChangedConvention
type SqlServerTemporalConvention = class
    interface IEntityTypeAnnotationChangedConvention
    interface IConvention
    interface ISkipNavigationForeignKeyChangedConvention
    interface IModelFinalizingConvention
Public Class SqlServerTemporalConvention
Implements IEntityTypeAnnotationChangedConvention, ISkipNavigationForeignKeyChangedConvention
Public Class SqlServerTemporalConvention
Implements IEntityTypeAnnotationChangedConvention, IModelFinalizingConvention, ISkipNavigationForeignKeyChangedConvention
Inheritance
SqlServerTemporalConvention
Implements

Remarks

See Model building conventions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Constructors

SqlServerTemporalConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Creates a new instance of SqlServerTemporalConvention.

Properties

Dependencies

Dependencies for this service.

RelationalDependencies

Relational provider-specific dependencies for this service.

Methods

ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

Called after an annotation is changed on an entity type.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called when a model is being finalized.

ProcessSkipNavigationForeignKeyChanged(IConventionSkipNavigationBuilder, IConventionForeignKey, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

Called after a skip navigation inverse is changed.

Applies to