SqlServerTemporalConvention 类

定义

一种约定,用于操作映射到临时表的实体的时态设置。

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
继承
SqlServerTemporalConvention
实现

注解

有关详细信息和示例,请参阅模型构建约定和使用 EF Core 访问SQL Server和Azure SQL数据库

构造函数

SqlServerTemporalConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

创建 SqlServerTemporalConvention 的新实例。

属性

Dependencies

此服务的依赖项。

RelationalDependencies

此服务的关系提供程序特定的依赖项。

方法

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

在实体类型上更改批注后调用。

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

在最终确定模型时调用。

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

在跳过导航逆向更改后调用。

适用于