Delen via


CosmosModelBuilderExtensions Class

Definition

Cosmos-specific extension methods for ModelBuilder.

public static class CosmosModelBuilderExtensions
type CosmosModelBuilderExtensions = class
Public Module CosmosModelBuilderExtensions
Inheritance
CosmosModelBuilderExtensions

Remarks

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

Methods

CanSetDefaultContainer(IConventionModelBuilder, String, Boolean)

Returns a value indicating whether the given container name can be set as default.

CanSetThroughput(IConventionModelBuilder, Nullable<Int32>, Boolean, Boolean)

Returns a value indicating whether the given throughput can be set.

HasAutoscaleThroughput(ModelBuilder, Nullable<Int32>)

Configures the autoscale provisioned throughput offering.

HasDefaultContainer(IConventionModelBuilder, String, Boolean)

Configures the default container name that will be used if no name is explicitly configured for an entity type.

HasDefaultContainer(ModelBuilder, String)

Configures the default container name that will be used if no name is explicitly configured for an entity type.

HasManualThroughput(ModelBuilder, Nullable<Int32>)

Configures the manual provisioned throughput offering.

HasThroughput(IConventionModelBuilder, Nullable<Int32>, Boolean, Boolean)

Configures the provisioned throughput.

Applies to