CosmosPropertyBuilderExtensions Class

Definition

Cosmos-specific extension methods for PropertyBuilder.

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

Remarks

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

Methods

CanSetJsonProperty(IConventionPropertyBuilder, String, Boolean)

Returns a value indicating whether the given property name can be set.

IsETagConcurrency(PropertyBuilder)

Configures this property to be the etag concurrency token.

IsETagConcurrency<TProperty>(PropertyBuilder<TProperty>)

Configures this property to be the etag concurrency token.

ToJsonProperty(IConventionPropertyBuilder, String, Boolean)

Configures the property name that the property is mapped to when targeting Azure Cosmos. If an empty string is supplied then the property will not be persisted.

ToJsonProperty(PropertyBuilder, String)

Configures the property name that the property is mapped to when targeting Azure Cosmos.

ToJsonProperty<TProperty>(PropertyBuilder<TProperty>, String)

Configures the property name that the property is mapped to when targeting Azure Cosmos.

Applies to