CosmosModelExtensions.SetThroughput Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>)
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.
Applies to
SetThroughput(IConventionModel, Nullable<Int32>, Nullable<Boolean>, Boolean)
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.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework