共用方式為


RelationalRuntimeModelConvention 類別

定義

建立可變動模型之優化複本的慣例。 此慣例通常是由資料庫提供者實作,以在建立唯讀模型時更新提供者批註。

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

備註

如需詳細資訊和範例,請參閱 模型建置慣例

建構函式

RelationalRuntimeModelConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立 RelationalRuntimeModelConvention 的新執行個體。

屬性

Dependencies

此服務的相依性。

(繼承來源 RuntimeModelConvention)
RelationalDependencies

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

方法

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)

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

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

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

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

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

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

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

ProcessForeignKeyAnnotations(Dictionary<String,Object>, IForeignKey, RuntimeForeignKey, Boolean)

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

ProcessFunctionAnnotations(Dictionary<String,Object>, IDbFunction, RuntimeDbFunction, Boolean)

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

ProcessFunctionParameterAnnotations(Dictionary<String,Object>, IDbFunctionParameter, RuntimeDbFunctionParameter, Boolean)

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

ProcessIndexAnnotations(Dictionary<String,Object>, IIndex, RuntimeIndex, Boolean)

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

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

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

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

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

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

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

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

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

(繼承來源 RuntimeModelConvention)
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)

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

ProcessSequenceAnnotations(Dictionary<String,Object>, ISequence, RuntimeSequence, Boolean)

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

ProcessServicePropertyAnnotations(Dictionary<String,Object>, IServiceProperty, RuntimeServiceProperty, Boolean)

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

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

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

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

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

ProcessStoredProcedureParameterAnnotations(Dictionary<String,Object>, IStoredProcedureParameter, RuntimeStoredProcedureParameter, Boolean)

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

ProcessStoredProcedureResultColumnAnnotations(Dictionary<String,Object>, IStoredProcedureResultColumn, RuntimeStoredProcedureResultColumn, Boolean)

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

ProcessTriggerAnnotations(Dictionary<String,Object>, ITrigger, RuntimeTrigger, Boolean)

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

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

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

(繼承來源 RuntimeModelConvention)

適用於