次の方法で共有


CosmosEntityTypeBuilderExtensions.CanSetThroughput メソッド

定義

指定されたスループットを設定できるかどうかを示す値を返します。

public static bool CanSetThroughput (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, int? throughput, bool autoscale, bool fromDataAnnotation = false);
static member CanSetThroughput : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * Nullable<int> * bool * bool -> bool
<Extension()>
Public Function CanSetThroughput (entityTypeBuilder As IConventionEntityTypeBuilder, throughput As Nullable(Of Integer), autoscale As Boolean, Optional fromDataAnnotation As Boolean = false) As Boolean

パラメーター

entityTypeBuilder
IConventionEntityTypeBuilder

構成されているエンティティ型のビルダー。

throughput
Nullable<Int32>

設定するスループット。

autoscale
Boolean

自動スケーリングが有効になっているかどうか。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

true 指定されたコンテナー名を既定として設定できる場合は 。

注釈

詳細と例については、「 エンティティの種類とリレーションシップのモデル化」および「 EF Core を使用した Azure Cosmos DB へのアクセス 」を参照してください。

適用対象