Condividi tramite


CosmosPropertyExtensions Class

Definition

Property extension methods for Cosmos metadata.

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

Remarks

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

Methods

GetJsonPropertyName(IProperty)

Returns the property name that the property is mapped to when targeting Cosmos.

GetJsonPropertyName(IReadOnlyProperty)

Returns the property name that the property is mapped to when targeting Cosmos.

GetJsonPropertyNameConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the property name that the property is mapped to when targeting Cosmos.

GetPropertyName(IProperty)

Returns the property name used when targeting Cosmos.

GetPropertyNameConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the property name used when targeting Cosmos.

GetVectorType(IReadOnlyProperty)

Returns the definition of the vector stored in this property.

GetVectorTypeConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the definition of the vector stored in this property.

SetJsonPropertyName(IConventionProperty, String, Boolean)

Sets the property name that the property is mapped to when targeting Cosmos.

SetJsonPropertyName(IMutableProperty, String)

Sets the property name that the property is mapped to when targeting Cosmos.

SetPropertyName(IConventionProperty, String, Boolean)

Sets the property name used when targeting Cosmos.

SetPropertyName(IMutableProperty, String)

Sets the property name used when targeting Cosmos.

SetVectorType(IConventionProperty, CosmosVectorType, Boolean)

Sets the definition of the vector stored in this property.

SetVectorType(IMutableProperty, CosmosVectorType)

Sets the definition of the vector stored in this property.

Applies to