CosmosEntityTypeExtensions.GetPartitionKeyPropertyName 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
要获取其分区键属性名称的实体类型。
返回
分区键属性的名称。