Share via


CosmosEntityTypeExtensions.SetThroughput 方法

定义

重载

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

在容器范围内设置预配的吞吐量。

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

在容器范围内设置预配的吞吐量。

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

在容器范围内设置预配的吞吐量。

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

参数

entityType
IMutableEntityType

实体类型。

throughput
Nullable<Int32>

要设置的吞吐量。

autoscale
Nullable<Boolean>

是否启用自动缩放。

适用于

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

在容器范围内设置预配的吞吐量。

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)

参数

entityType
IConventionEntityType

实体类型。

throughput
Nullable<Int32>

要设置的吞吐量。

autoscale
Nullable<Boolean>

是否启用自动缩放。

fromDataAnnotation
Boolean

指示配置是否是使用数据注释指定的。

返回

适用于