CosmosPropertyBuilderExtensions 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 PropertyBuilder.
[System.Runtime.CompilerServices.Nullable(0)]
public static class CosmosPropertyBuilderExtensions
public static class CosmosPropertyBuilderExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type CosmosPropertyBuilderExtensions = class
type CosmosPropertyBuilderExtensions = class
Public Module CosmosPropertyBuilderExtensions
- Inheritance
-
CosmosPropertyBuilderExtensions
- Attributes
Remarks
See Modeling entity types and relationships, and Accessing Azure Cosmos DB with EF Core for more information and examples.
Methods
| Name | Description |
|---|---|
| CanSetEnableFullTextSearch(IConventionPropertyBuilder, String, Boolean, Boolean) |
Returns a value indicating whether full-text search can be enabled for this property using a specified language. |
| CanSetIsVector(IConventionPropertyBuilder, DistanceFunction, Int32, Boolean) |
Returns a value indicating whether the vector type can be set. |
| CanSetIsVectorProperty(IConventionPropertyBuilder, DistanceFunction, Int32, Boolean) |
Returns a value indicating whether the vector distance function and dimensions can be set. |
| CanSetJsonProperty(IConventionPropertyBuilder, String, Boolean) |
Returns a value indicating whether the given property name can be set. |
| EnableFullTextSearch(IConventionPropertyBuilder, String, Boolean, Boolean) |
Enables full-text search for this property using a specified language. |
| EnableFullTextSearch(PropertyBuilder, String, Boolean) |
Enables full-text search for this property using a specified language. |
| EnableFullTextSearch<TProperty>(PropertyBuilder<TProperty>, String, Boolean) |
Enables full-text search for this property using a specified language. |
| 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. |
| IsVectorProperty(IConventionPropertyBuilder, DistanceFunction, Int32, Boolean) |
Configures the property as a vector for Azure Cosmos DB. |
| IsVectorProperty(PropertyBuilder, DistanceFunction, Int32) |
Configures the property as a vector for Azure Cosmos DB. |
| IsVectorProperty<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. |