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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för