다음을 통해 공유


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

CanSetIsVector(IConventionPropertyBuilder, DistanceFunction, Int32, Boolean)

Returns a value indicating whether the vector type can be set.

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.

IsVector(IConventionPropertyBuilder, DistanceFunction, Int32, Boolean)

Configures the property as a vector for Azure Cosmos DB.

IsVector(PropertyBuilder, DistanceFunction, Int32)

Configures the property as a vector for Azure Cosmos DB.

IsVector<TProperty>(PropertyBuilder<TProperty>, DistanceFunction, Int32)

Configures the property as a vector for Azure Cosmos DB.

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