CosmosEntityTypeExtensions.GetPartitionKeyPropertyName 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
GetPartitionKeyPropertyName(IEntityType) |
Returns the name of the property that is used to store the partition key. |
GetPartitionKeyPropertyName(IReadOnlyEntityType) |
Returns the name of the property that is used to store the partition key. |
GetPartitionKeyPropertyName(IEntityType)
Returns the name of the property that is used to store the partition key.
public static string GetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetPartitionKeyPropertyName : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> string
<Extension()>
Public Function GetPartitionKeyPropertyName (entityType As IEntityType) As String
Parameters
- entityType
- IEntityType
The entity type to get the partition key property name for.
Returns
The name of the partition key property.
Applies to
GetPartitionKeyPropertyName(IReadOnlyEntityType)
Returns the name of the property that is used to store the partition key.
public static string? GetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetPartitionKeyPropertyName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> string
<Extension()>
Public Function GetPartitionKeyPropertyName (entityType As IReadOnlyEntityType) As String
Parameters
- entityType
- IReadOnlyEntityType
The entity type to get the partition key property name for.
Returns
The name of the partition key property.
Applies to
Entity Framework