CosmosEntityTypeExtensions.SetPartitionKeyPropertyNames Method
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.
Overloads
| Name | Description |
|---|---|
| SetPartitionKeyPropertyNames(IMutableEntityType, IReadOnlyList<String>) |
Sets the names of the properties that are used to store the hierarchical partition key. |
| SetPartitionKeyPropertyNames(IConventionEntityType, IReadOnlyList<String>, Boolean) |
Sets the names of the properties that are used to store the hierarchical partition key. |
SetPartitionKeyPropertyNames(IMutableEntityType, IReadOnlyList<String>)
Sets the names of the properties that are used to store the hierarchical partition key.
public static void SetPartitionKeyPropertyNames(this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Collections.Generic.IReadOnlyList<string>? names);
static member SetPartitionKeyPropertyNames : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Collections.Generic.IReadOnlyList<string> -> unit
<Extension()>
Public Sub SetPartitionKeyPropertyNames (entityType As IMutableEntityType, names As IReadOnlyList(Of String))
Parameters
- entityType
- IMutableEntityType
The entity type.
- names
- IReadOnlyList<String>
The names to set, or null to clear all names.
Applies to
SetPartitionKeyPropertyNames(IConventionEntityType, IReadOnlyList<String>, Boolean)
Sets the names of the properties that are used to store the hierarchical partition key.
public static System.Collections.Generic.IReadOnlyList<string>? SetPartitionKeyPropertyNames(this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Collections.Generic.IReadOnlyList<string>? names, bool fromDataAnnotation = false);
static member SetPartitionKeyPropertyNames : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Collections.Generic.IReadOnlyList<string> * bool -> System.Collections.Generic.IReadOnlyList<string>
<Extension()>
Public Function SetPartitionKeyPropertyNames (entityType As IConventionEntityType, names As IReadOnlyList(Of String), Optional fromDataAnnotation As Boolean = false) As IReadOnlyList(Of String)
Parameters
- entityType
- IConventionEntityType
The entity type to set the partition key property name for.
- names
- IReadOnlyList<String>
The names to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.