CosmosModelBuilderExtensions.HasThroughput 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
配置配置已配置的吞吐量。
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
模型建構器。
- autoscale
- Boolean
是否啟用了自動縮放。
- fromDataAnnotation
- Boolean
表示配置是否以資料註解方式指定。
傳回
備註
更多資訊與範例請參閱「建模實體類型與關係」以及「使用 EF Core 存取 Azure Cosmos DB」。