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 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.

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.

Applies to