語言

CosmosRuntimeModelConvention 類別

定義

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

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

備註

更多資訊與範例請參閱模型建構慣例,以及使用 EF Core 存取 Azure Cosmos DB。

建構函式

名稱 Description
CosmosRuntimeModelConvention(ProviderConventionSetBuilderDependencies)

建立一個新的 實例。CosmosRuntimeModelConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

(繼承來源 RuntimeModelConvention)

方法

名稱 Description
Create(IModel)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

(繼承來源 RuntimeModelConvention)

適用於