CosmosEntityTypeExtensions.SetThroughput Methode

Definition

Überlädt

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

Legt den bereitgestellten Durchsatz im Containerbereich fest.

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

Legt den bereitgestellten Durchsatz im Containerbereich fest.

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

Legt den bereitgestellten Durchsatz im Containerbereich fest.

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

Parameter

entityType
IMutableEntityType

Der Entitätstyp.

throughput
Nullable<Int32>

Der festzulegende Durchsatz.

autoscale
Nullable<Boolean>

Gibt an, ob die automatische Skalierung aktiviert ist.

Gilt für:

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

Legt den bereitgestellten Durchsatz im Containerbereich fest.

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)

Parameter

entityType
IConventionEntityType

Der Entitätstyp.

throughput
Nullable<Int32>

Der festzulegende Durchsatz.

autoscale
Nullable<Boolean>

Gibt an, ob die automatische Skalierung aktiviert ist.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Gilt für: