共用方式為


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>)

在略過導覽反轉變更之後呼叫。

適用於