共用方式為


SqlServerRuntimeModelConvention 類別

定義

建立可變動模型之優化複本的慣例。

public class SqlServerRuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationalRuntimeModelConvention
type SqlServerRuntimeModelConvention = class
    inherit RelationalRuntimeModelConvention
Public Class SqlServerRuntimeModelConvention
Inherits RelationalRuntimeModelConvention
繼承

備註

如需詳細資訊和範例,請參閱使用 EF Core建立模型慣例和存取SQL Server和Azure SQL資料庫

建構函式

SqlServerRuntimeModelConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立 SqlServerRuntimeModelConvention 的新執行個體。

屬性

Dependencies

此服務的相依性。

(繼承來源 RuntimeModelConvention)
RelationalDependencies

此服務的關聯式提供者特定相依性。

(繼承來源 RelationalRuntimeModelConvention)

方法

Create(IModel)

根據所提供的模型建立優化模型。

(繼承來源 RuntimeModelConvention)
GetForeignKey(IForeignKey, RuntimeEntityType)

取得讀取優化模型中的對應外鍵。

(繼承來源 RuntimeModelConvention)
GetIndex(IIndex, RuntimeEntityType)

取得讀取優化模型中的對應索引。

(繼承來源 RuntimeModelConvention)
GetKey(IKey, RuntimeEntityType)

取得讀取優化模型中的對應索引鍵。

(繼承來源 RuntimeModelConvention)
ProcessComplexPropertyAnnotations(Dictionary<String,Object>, IComplexProperty, RuntimeComplexProperty, Boolean)

匯報將在唯讀物件上設定的屬性批註。

(繼承來源 RuntimeModelConvention)
ProcessElementTypeAnnotations(Dictionary<String,Object>, IElementType, RuntimeElementType, Boolean)

匯報將在唯讀物件上設定的專案類型批註。

(繼承來源 RuntimeModelConvention)
ProcessEntityTypeAnnotations(Dictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

匯報將在唯讀物件上設定的實體類型批註。

ProcessEntityTypeAnnotations(Dictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

匯報將在唯讀物件上設定的實體類型批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessEntityTypeAnnotations(IDictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

匯報將在唯讀物件上設定的實體類型批註。

ProcessEntityTypeAnnotations(IDictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

匯報將在唯讀物件上設定的實體類型批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessEntityTypeMappingFragmentAnnotations(Dictionary<String,Object>, IEntityTypeMappingFragment, RuntimeEntityTypeMappingFragment, Boolean)

匯報關係屬性會覆寫將在唯讀物件上設定的批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessForeignKeyAnnotations(Dictionary<String,Object>, IForeignKey, RuntimeForeignKey, Boolean)

匯報將在唯讀物件上設定的外鍵批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessFunctionAnnotations(Dictionary<String,Object>, IDbFunction, RuntimeDbFunction, Boolean)

匯報將在唯讀物件上設定的函式批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessFunctionParameterAnnotations(Dictionary<String,Object>, IDbFunctionParameter, RuntimeDbFunctionParameter, Boolean)

匯報將在唯讀物件上設定的函式參數批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessIndexAnnotations(Dictionary<String,Object>, IIndex, RuntimeIndex, Boolean)

匯報將在唯讀物件上設定的索引批註。

ProcessKeyAnnotations(Dictionary<String,Object>, IKey, RuntimeKey, Boolean)

匯報將在唯讀物件上設定的索引鍵批註。

ProcessKeyAnnotations(Dictionary<String,Object>, IKey, RuntimeKey, Boolean)

匯報將在唯讀物件上設定的索引鍵批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessKeyAnnotations(IDictionary<String,Object>, IKey, RuntimeKey, Boolean)

匯報將在唯讀物件上設定的索引鍵批註。

ProcessKeyAnnotations(IDictionary<String,Object>, IKey, RuntimeKey, Boolean)

匯報將在唯讀物件上設定的索引鍵批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessModelAnnotations(Dictionary<String,Object>, IModel, RuntimeModel, Boolean)

匯報將在唯讀物件上設定的模型批註。

ProcessModelFinalized(IModel)

在模型完成之後呼叫,且無法再進行變動。

(繼承來源 RuntimeModelConvention)
ProcessNavigationAnnotations(Dictionary<String,Object>, INavigation, RuntimeNavigation, Boolean)

匯報將在唯讀物件上設定的導覽批註。

(繼承來源 RuntimeModelConvention)
ProcessPropertyAnnotations(Dictionary<String,Object>, IProperty, RuntimeProperty, Boolean)

匯報將在唯讀物件上設定的屬性批註。

ProcessPropertyOverridesAnnotations(Dictionary<String,Object>, IRelationalPropertyOverrides, RuntimeRelationalPropertyOverrides, Boolean)

匯報關係屬性會覆寫將在唯讀物件上設定的批註。

ProcessPropertyOverridesAnnotations(Dictionary<String,Object>, IRelationalPropertyOverrides, RuntimeRelationalPropertyOverrides, Boolean)

匯報關係屬性會覆寫將在唯讀物件上設定的批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessPropertyOverridesAnnotations(Dictionary<String,Object>, IRelationalPropertyOverrides, RuntimeRelationalPropertyOverrides, Boolean)

匯報關係屬性會覆寫將在唯讀物件上設定的批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessSequenceAnnotations(Dictionary<String,Object>, ISequence, RuntimeSequence, Boolean)

匯報將在唯讀物件上設定的序列批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessServicePropertyAnnotations(Dictionary<String,Object>, IServiceProperty, RuntimeServiceProperty, Boolean)

匯報將在唯讀物件上設定的服務屬性批註。

(繼承來源 RuntimeModelConvention)
ProcessSkipNavigationAnnotations(Dictionary<String,Object>, ISkipNavigation, RuntimeSkipNavigation, Boolean)

匯報將在唯讀物件上設定的略過導覽批註。

(繼承來源 RuntimeModelConvention)
ProcessStoredProcedureAnnotations(Dictionary<String,Object>, IStoredProcedure, RuntimeStoredProcedure, Boolean)

匯報將在唯讀物件上設定的預存程式批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessStoredProcedureParameterAnnotations(Dictionary<String,Object>, IStoredProcedureParameter, RuntimeStoredProcedureParameter, Boolean)

匯報將在唯讀物件上設定的預存程式參數批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessStoredProcedureResultColumnAnnotations(Dictionary<String,Object>, IStoredProcedureResultColumn, RuntimeStoredProcedureResultColumn, Boolean)

匯報將在唯讀物件上設定的預存程式結果資料行批註。

(繼承來源 RelationalRuntimeModelConvention)
ProcessTriggerAnnotations(Dictionary<String,Object>, ITrigger, RuntimeTrigger, Boolean)

匯報將在唯讀物件上設定的觸發程式批註。

(繼承來源 RuntimeModelConvention)
ProcessTypeMappingConfigurationAnnotations(Dictionary<String,Object>, ITypeMappingConfiguration, RuntimeTypeMappingConfiguration, Boolean)

匯報將在唯讀物件上設定的屬性批註。

(繼承來源 RuntimeModelConvention)

適用於