CosmosModelExtensions 類別

定義

Cosmos 中繼資料的模型擴充方法。

public static class CosmosModelExtensions
type CosmosModelExtensions = class
Public Module CosmosModelExtensions
繼承
CosmosModelExtensions

備註

如需詳細資訊和範例,請參閱使用 EF Core 建立實體類型和關聯性的模型化,以及 使用 EF Core 存取 Azure Cosmos DB

方法

GetDefaultContainer(IModel)

傳回預設容器名稱。

GetDefaultContainer(IReadOnlyModel)

傳回預設容器名稱。

GetDefaultContainerConfigurationSource(IConventionModel)

傳回預設容器名稱的組態來源。

GetThroughput(IReadOnlyModel)

傳回資料庫範圍中布建的輸送量。

GetThroughputConfigurationSource(IConventionModel)

ConfigurationSource取得資料庫範圍中布建輸送量的 。

SetDefaultContainer(IConventionModel, String, Boolean)

設定預設容器名稱。

SetDefaultContainer(IMutableModel, String)

設定預設容器名稱。

SetThroughput(IConventionModel, Nullable<Int32>, Nullable<Boolean>, Boolean)

在資料庫範圍設定布建的輸送量。

SetThroughput(IMutableModel, Nullable<Int32>, Nullable<Boolean>)

在資料庫範圍設定布建的輸送量。

適用於