語言

RelationalRuntimeModelConvention 類別

定義

一種建立可變模型優化副本的慣例。 此慣例通常由資料庫提供者實作,用於在建立唯讀模型時更新提供者註解。

[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalRuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RuntimeModelConvention
public class RelationalRuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RuntimeModelConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalRuntimeModelConvention = class
    inherit RuntimeModelConvention
type RelationalRuntimeModelConvention = class
    inherit RuntimeModelConvention
Public Class RelationalRuntimeModelConvention
Inherits RuntimeModelConvention
繼承
RelationalRuntimeModelConvention
衍生
屬性

備註

更多資訊與範例請參閱 模型建構慣例 。

建構函式

名稱 Description
RelationalRuntimeModelConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立一個新的 實例。RelationalRuntimeModelConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

(繼承來源 RuntimeModelConvention)
RelationalDependencies

此服務的關聯提供者專屬相依關係。

方法

名稱 Description
Create(IModel)

在提供的模型基礎上建立優化模型。

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

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

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

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

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

在讀取最佳化模型中取得相應的金鑰。

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

更新將被設定在唯讀物件上的屬性註解。

ProcessComplexPropertyAnnotations(Dictionary<String,Object>, IComplexProperty, RuntimeComplexProperty, Boolean)

更新將被設定在唯讀物件上的屬性註解。

(繼承來源 RuntimeModelConvention)
ProcessComplexTypeAnnotations(Dictionary<String,Object>, IComplexType, RuntimeComplexType, Boolean)

更新將被設定在唯讀物件上的複雜型別註解。

ProcessElementTypeAnnotations(Dictionary<String,Object>, IElementType, RuntimeElementType, Boolean)

更新將被設定在唯讀物件上的元素類型註解。

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

更新將被設定在唯讀物件上的實體類型註解。

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

更新將被設定在唯讀物件上的實體類型註解。

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(IDictionary<String,Object>, IKey, RuntimeKey, Boolean)

更新將被設定在唯讀物件上的金鑰註解。

ProcessModelAnnotations(Dictionary<String,Object>, IModel, RuntimeModel, Boolean)

更新將被設定在唯讀物件上的模型註解。

ProcessModelFinalized(IModel)

在模型確定且無法再變異後被召喚。

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

更新將被設定在唯讀物件上的導航註解。

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)

適用於