CosmosRuntimeModelConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一種建立可變模型優化副本的慣例。 此慣例通常由資料庫提供者實作,用於在建立唯讀模型時更新提供者註解。
[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
- 繼承
- 屬性
備註
更多資訊與範例請參閱模型建構慣例,以及使用 EF Core 存取 Azure Cosmos DB。
建構函式
| 名稱 | Description |
|---|---|
| CosmosRuntimeModelConvention(ProviderConventionSetBuilderDependencies) |
建立一個新的 實例。CosmosRuntimeModelConvention |
屬性
| 名稱 | Description |
|---|---|
| Dependencies |
此服務的依賴關係。 (繼承來源 RuntimeModelConvention) |