CosmosModelExtensions Class

Definition

Model extension methods for Cosmos metadata.

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

Remarks

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

Methods

GetDefaultContainer(IModel)

Returns the default container name.

GetDefaultContainer(IReadOnlyModel)

Returns the default container name.

GetDefaultContainerConfigurationSource(IConventionModel)

Returns the configuration source for the default container name.

GetThroughput(IReadOnlyModel)

Returns the provisioned throughput at database scope.

GetThroughputConfigurationSource(IConventionModel)

Gets the ConfigurationSource for the provisioned throughput at database scope.

SetDefaultContainer(IConventionModel, String, Boolean)

Sets the default container name.

SetDefaultContainer(IMutableModel, String)

Sets the default container name.

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.

Applies to