語言

RuntimeModelConvention 類別

定義

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

[System.Runtime.CompilerServices.Nullable(0)]
public class RuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class RuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type RuntimeModelConvention = class
    interface IModelFinalizedConvention
    interface IConvention
type RuntimeModelConvention = class
    interface IModelFinalizedConvention
    interface IConvention
Public Class RuntimeModelConvention
Implements IModelFinalizedConvention
繼承
RuntimeModelConvention
衍生
屬性
實作

備註

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

建構函式

名稱 Description
RuntimeModelConvention(ProviderConventionSetBuilderDependencies)

建立一個新的 實例。RuntimeModelConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

方法

名稱 Description
Create(IModel)

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

GetForeignKey(IForeignKey, RuntimeEntityType)

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

GetIndex(IIndex, RuntimeEntityType)

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

GetKey(IKey, RuntimeEntityType)

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

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

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

ProcessComplexTypeAnnotations(Dictionary<String,Object>, IComplexType, RuntimeComplexType, Boolean)

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

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

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

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

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

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

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

ProcessForeignKeyAnnotations(Dictionary<String,Object>, IForeignKey, RuntimeForeignKey, 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)

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

ProcessNavigationAnnotations(Dictionary<String,Object>, INavigation, RuntimeNavigation, Boolean)

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

ProcessPropertyAnnotations(Dictionary<String,Object>, IProperty, RuntimeProperty, Boolean)

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

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

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

ProcessSkipNavigationAnnotations(Dictionary<String,Object>, ISkipNavigation, RuntimeSkipNavigation, Boolean)

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

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

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

ProcessTypeMappingConfigurationAnnotations(Dictionary<String,Object>, ITypeMappingConfiguration, RuntimeTypeMappingConfiguration, Boolean)

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

適用於