CosmosEntityTypeExtensions.GetPartitionKeyPropertyName 方法

定义

重载

GetPartitionKeyPropertyName(IEntityType)

返回用于存储分区键的属性的名称。

GetPartitionKeyPropertyName(IReadOnlyEntityType)

返回用于存储分区键的属性的名称。

GetPartitionKeyPropertyName(IEntityType)

返回用于存储分区键的属性的名称。

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

参数

entityType
IEntityType

要获取其分区键属性名称的实体类型。

返回

分区键属性的名称。

适用于

GetPartitionKeyPropertyName(IReadOnlyEntityType)

返回用于存储分区键的属性的名称。

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

参数

entityType
IReadOnlyEntityType

要获取其分区键属性名称的实体类型。

返回

分区键属性的名称。

适用于