CosmosRuntimeModelConvention 類別

定義

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

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

備註

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

建構函式

CosmosRuntimeModelConvention(ProviderConventionSetBuilderDependencies)

建立 CosmosRuntimeModelConvention 的新執行個體。

屬性

Dependencies

此服務的相依性。

(繼承來源 RuntimeModelConvention)

方法

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)
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)

適用於