CosmosModelBuilderExtensions.HasThroughput 方法

定义

配置预配的吞吐量。

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

参数

modelBuilder
IConventionModelBuilder

模型生成器。

throughput
Nullable<Int32>

要设置的吞吐量。

autoscale
Boolean

是否启用自动缩放。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

注解

有关详细信息和示例,请参阅为实体类型和关系建模和使用 EF Core 访问 Azure Cosmos DB

适用于