CosmosEntityTypeExtensions.SetThroughput Method

Definition

Overloads

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

Sets the provisioned throughput at container scope.

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

Sets the provisioned throughput at container scope.

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

Sets the provisioned throughput at container scope.

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

Parameters

entityType
IMutableEntityType

The entity type.

throughput
Nullable<Int32>

The throughput to set.

autoscale
Nullable<Boolean>

Whether autoscale is enabled.

Applies to

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

Sets the provisioned throughput at container scope.

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)

Parameters

entityType
IConventionEntityType

The entity type.

throughput
Nullable<Int32>

The throughput to set.

autoscale
Nullable<Boolean>

Whether autoscale is enabled.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

Applies to