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.

C#
public static void SetThroughput (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, int? throughput, bool? autoscale);

Parameters

model
IMutableModel

The model.

throughput
Nullable<Int32>

The throughput to set.

autoscale
Nullable<Boolean>

Whether autoscale is enabled.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 6.0, 7.0, 8.0, 9.0

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.

C#
public static int? SetThroughput (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? throughput, bool? autoscale, bool fromDataAnnotation = false);

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

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 6.0, 7.0, 8.0, 9.0