Share via


CosmosEntityTypeExtensions.SetThroughput Método

Definição

Sobrecargas

SetThroughput(IMutableEntityType, Nullable<Int32>, Nullable<Boolean>)

Define a taxa de transferência provisionada no escopo do contêiner.

SetThroughput(IConventionEntityType, Nullable<Int32>, Nullable<Boolean>, Boolean)

Define a taxa de transferência provisionada no escopo do contêiner.

SetThroughput(IMutableEntityType, Nullable<Int32>, Nullable<Boolean>)

Define a taxa de transferência provisionada no escopo do contêiner.

public static void SetThroughput (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, int? throughput, bool? autoscale);
static member SetThroughput : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<int> * Nullable<bool> -> unit
<Extension()>
Public Sub SetThroughput (entityType As IMutableEntityType, throughput As Nullable(Of Integer), autoscale As Nullable(Of Boolean))

Parâmetros

entityType
IMutableEntityType

O tipo de entidade.

throughput
Nullable<Int32>

A taxa de transferência a ser definida.

autoscale
Nullable<Boolean>

Se o dimensionamento automático está habilitado.

Aplica-se a

SetThroughput(IConventionEntityType, Nullable<Int32>, Nullable<Boolean>, Boolean)

Define a taxa de transferência provisionada no escopo do contêiner.

public static void SetThroughput (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, int? throughput, bool? autoscale, bool fromDataAnnotation = false);
public static int? SetThroughput (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, int? throughput, bool? autoscale, bool fromDataAnnotation = false);
static member SetThroughput : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<int> * Nullable<bool> * bool -> unit
static member SetThroughput : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<int> * Nullable<bool> * bool -> Nullable<int>
<Extension()>
Public Sub SetThroughput (entityType As IConventionEntityType, throughput As Nullable(Of Integer), autoscale As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetThroughput (entityType As IConventionEntityType, throughput As Nullable(Of Integer), autoscale As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

Parâmetros

entityType
IConventionEntityType

O tipo de entidade.

throughput
Nullable<Int32>

A taxa de transferência a ser definida.

autoscale
Nullable<Boolean>

Se o dimensionamento automático está habilitado.

fromDataAnnotation
Boolean

Indica se a configuração foi especificada usando uma anotação de dados.

Retornos

Aplica-se a