共用方式為


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

要為其取得資料分割索引鍵屬性名稱的實體類型。

傳回

資料分割索引鍵屬性的名稱。

適用於