Sdílet prostřednictvím


CosmosEntityTypeBuilderExtensions.HasThroughput Metoda

Definice

Nakonfiguruje zřízenou propustnost.

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

Parametry

entityTypeBuilder
IConventionEntityTypeBuilder

Tvůrce pro konfigurovaný typ entity.

throughput
Nullable<Int32>

Propustnost, která se má nastavit.

autoscale
Boolean

Jestli je povolené automatické škálování.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Poznámky

Další informace a příklady najdete v tématech Modelování typů entit a relací a Přístup ke službě Azure Cosmos DB pomocí EF Core .

Platí pro