CosmosModelBuilderExtensions.HasAutoscaleThroughput 方法

定义

配置自动缩放预配的吞吐量产品/服务。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasAutoscaleThroughput (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, int? throughput);
static member HasAutoscaleThroughput : Microsoft.EntityFrameworkCore.ModelBuilder * Nullable<int> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasAutoscaleThroughput (modelBuilder As ModelBuilder, throughput As Nullable(Of Integer)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

throughput
Nullable<Int32>

要设置的吞吐量。

返回

注解

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

适用于