CosmosEntityTypeBuilderExtensions.HasAutoscaleThroughput Method

Definition

Overloads

HasAutoscaleThroughput(EntityTypeBuilder, Nullable<Int32>)

Configures the autoscale provisioned throughput offering.

HasAutoscaleThroughput<TEntity>(EntityTypeBuilder<TEntity>, Nullable<Int32>)

Configures the autoscale provisioned throughput offering.

HasAutoscaleThroughput(EntityTypeBuilder, Nullable<Int32>)

Configures the autoscale provisioned throughput offering.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder HasAutoscaleThroughput (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, int? throughput);
static member HasAutoscaleThroughput : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * Nullable<int> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function HasAutoscaleThroughput (entityTypeBuilder As EntityTypeBuilder, throughput As Nullable(Of Integer)) As EntityTypeBuilder

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

throughput
Nullable<Int32>

The throughput to set.

Returns

Remarks

See Modeling entity types and relationships, and Accessing Azure Cosmos DB with EF Core for more information and examples.

Applies to

HasAutoscaleThroughput<TEntity>(EntityTypeBuilder<TEntity>, Nullable<Int32>)

Configures the autoscale provisioned throughput offering.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasAutoscaleThroughput<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, int? throughput) where TEntity : class;
static member HasAutoscaleThroughput : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * Nullable<int> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function HasAutoscaleThroughput(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), throughput As Nullable(Of Integer)) As EntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

Parameters

entityTypeBuilder
EntityTypeBuilder<TEntity>

The builder for the entity type being configured.

throughput
Nullable<Int32>

The throughput to set.

Returns

Remarks

See Modeling entity types and relationships, and Accessing Azure Cosmos DB with EF Core for more information and examples.

Applies to