Share via


CosmosEntityTypeExtensions.SetPartitionKeyPropertyNames Method

Definition

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

Source:
CosmosEntityTypeExtensions.cs
Source:
CosmosEntityTypeExtensions.cs

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)

Source:
CosmosEntityTypeExtensions.cs
Source:
CosmosEntityTypeExtensions.cs

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.

Returns

Applies to