Lingua

CosmosModelBuilderExtensions.CanSetThroughput Metodo

Definizione

Restituisce un valore che indica se è possibile impostare la velocità effettiva specificata.

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

Parametri

modelBuilder
IConventionModelBuilder

Generatore di modelli.

throughput
Nullable<Int32>

Velocità effettiva da impostare.

autoscale
Boolean

Indica se la scalabilità automatica è abilitata.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Valori restituiti

true se il nome del contenitore specificato può essere impostato come predefinito.

Commenti

Per altre informazioni ed esempi, vedere Modellazione di tipi di entità e relazioni e Accesso Azure Cosmos DB con EF Core.

Si applica a