Sdílet prostřednictvím


CosmosEntityTypeBuilderExtensions.CanSetThroughput Metoda

Definice

Vrátí hodnotu označující, jestli je možné nastavit danou propustnost.

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

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

true pokud je možné daný název kontejneru nastavit jako výchozí.

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