CosmosEntityTypeBuilderExtensions.HasAutoscaleThroughput 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
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.
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.
Returns
Remarks
See Modeling entity types and relationships, and Accessing Azure Cosmos DB with EF Core for more information and examples.
Applies to
Entity Framework