CosmosEntityTypeBuilderExtensions Class
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.
Cosmos-specific extension methods for EntityTypeBuilder.
public static class CosmosEntityTypeBuilderExtensions
type CosmosEntityTypeBuilderExtensions = class
Public Module CosmosEntityTypeBuilderExtensions
- Inheritance
-
CosmosEntityTypeBuilderExtensions
Remarks
See Modeling entity types and relationships, and Accessing Azure Cosmos DB with EF Core for more information and examples.
Methods
CanSetAnalyticalStoreTimeToLive(IConventionEntityTypeBuilder, Nullable<Int32>, Boolean) |
Returns a value indicating whether the time to live for analytical store can be set from the current configuration source |
CanSetContainer(IConventionEntityTypeBuilder, String, Boolean) |
Returns a value indicating whether the container that the entity type maps to can be set from the current configuration source |
CanSetDefaultTimeToLive(IConventionEntityTypeBuilder, Nullable<Int32>, Boolean) |
Returns a value indicating whether the default time to live can be set from the current configuration source |
CanSetJsonProperty(IConventionEntityTypeBuilder, String, Boolean) |
Returns a value indicating whether the parent property name to which the entity type is mapped to can be set from the current configuration source |
CanSetPartitionKey(IConventionEntityTypeBuilder, String, Boolean) |
Returns a value indicating whether the property that is used to store the partition key can be set from the current configuration source |
CanSetThroughput(IConventionEntityTypeBuilder, Nullable<Int32>, Boolean, Boolean) |
Returns a value indicating whether the given throughput can be set. |
HasAnalyticalStoreTimeToLive(EntityTypeBuilder, Nullable<Int32>) |
Configures the time to live for analytical store in seconds at container scope. |
HasAnalyticalStoreTimeToLive(IConventionEntityTypeBuilder, Nullable<Int32>, Boolean) |
Configures the time to live for analytical store in seconds at container scope. |
HasAnalyticalStoreTimeToLive<TEntity>(EntityTypeBuilder<TEntity>, Nullable<Int32>) |
Configures the time to live for analytical store in seconds at container scope. |
HasAutoscaleThroughput(EntityTypeBuilder, Nullable<Int32>) |
Configures the autoscale provisioned throughput offering. |
HasAutoscaleThroughput<TEntity>(EntityTypeBuilder<TEntity>, Nullable<Int32>) |
Configures the autoscale provisioned throughput offering. |
HasDefaultTimeToLive(EntityTypeBuilder, Nullable<Int32>) |
Configures the default time to live in seconds at container scope. |
HasDefaultTimeToLive(IConventionEntityTypeBuilder, Nullable<Int32>, Boolean) |
Configures the default time to live in seconds at container scope. |
HasDefaultTimeToLive<TEntity>(EntityTypeBuilder<TEntity>, Nullable<Int32>) |
Configures the default time to live in seconds at container scope. |
HasManualThroughput(EntityTypeBuilder, Nullable<Int32>) |
Configures the manual provisioned throughput offering. |
HasManualThroughput<TEntity>(EntityTypeBuilder<TEntity>, Nullable<Int32>) |
Configures the manual provisioned throughput offering. |
HasPartitionKey(EntityTypeBuilder, String) |
Configures the property that is used to store the partition key. |
HasPartitionKey(IConventionEntityTypeBuilder, String, Boolean) |
Configures the property that is used to store the partition key. |
HasPartitionKey<TEntity,TProperty>(EntityTypeBuilder<TEntity>, Expression<Func<TEntity,TProperty>>) |
Configures the property that is used to store the partition key. |
HasPartitionKey<TEntity>(EntityTypeBuilder<TEntity>, String) |
Configures the property that is used to store the partition key. |
HasThroughput(IConventionEntityTypeBuilder, Nullable<Int32>, Boolean, Boolean) |
Configures the provisioned throughput. |
ToContainer(EntityTypeBuilder, String) |
Configures the container that the entity type maps to when targeting Azure Cosmos. |
ToContainer(IConventionEntityTypeBuilder, String, Boolean) |
Configures the container that the entity type maps to when targeting Azure Cosmos. |
ToContainer<TEntity>(EntityTypeBuilder<TEntity>, String) |
Configures the container that the entity type maps to when targeting Azure Cosmos. |
ToJsonProperty(IConventionEntityTypeBuilder, String, Boolean) |
Configures the property name that the entity is mapped to when stored as an embedded document. |
ToJsonProperty(OwnedNavigationBuilder, String) |
Configures the property name that the entity is mapped to when stored as an embedded document. |
ToJsonProperty<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String) |
Configures the property name that the entity is mapped to when stored as an embedded document. |
UseETagConcurrency(EntityTypeBuilder) |
Configures this entity to use CosmosDb etag concurrency checks. |
UseETagConcurrency<TEntity>(EntityTypeBuilder<TEntity>) |
Configures this entity to use CosmosDb etag concurrency checks. |
Applies to
Entity Framework