Udostępnij za pośrednictwem


CosmosEntityTypeExtensions.SetThroughput Metoda

Definicja

Przeciążenia

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

Ustawia aprowizowaną przepływność w zakresie kontenera.

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

Ustawia aprowizowaną przepływność w zakresie kontenera.

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

Ustawia aprowizowaną przepływność w zakresie kontenera.

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))

Parametry

entityType
IMutableEntityType

Typ jednostki.

throughput
Nullable<Int32>

Przepływność do ustawienia.

autoscale
Nullable<Boolean>

Określa, czy jest włączone automatyczne skalowanie.

Dotyczy

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

Ustawia aprowizowaną przepływność w zakresie kontenera.

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)

Parametry

entityType
IConventionEntityType

Typ jednostki.

throughput
Nullable<Int32>

Przepływność do ustawienia.

autoscale
Nullable<Boolean>

Określa, czy jest włączone automatyczne skalowanie.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Dotyczy