Share via


CosmosModelExtensions.SetThroughput Method

Definition

Overloads

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

Sets the provisioned throughput at database scope.

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

Sets the provisioned throughput at database scope.

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

Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs

Sets the provisioned throughput at database scope.

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

Parameters

model
IMutableModel

The model.

throughput
Nullable<Int32>

The throughput to set.

autoscale
Nullable<Boolean>

Whether autoscale is enabled.

Applies to

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

Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs

Sets the provisioned throughput at database scope.

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

Parameters

model
IConventionModel

The model.

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