CosmosEntityTypeExtensions.GetPartitionKeyProperty 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetPartitionKeyProperty(IReadOnlyEntityType) |
傳回用來儲存資料分割索引鍵的屬性。 |
GetPartitionKeyProperty(IMutableEntityType) |
傳回用來儲存資料分割索引鍵的屬性。 |
GetPartitionKeyProperty(IConventionEntityType) |
傳回用來儲存資料分割索引鍵的屬性。 |
GetPartitionKeyProperty(IEntityType) |
傳回用來儲存資料分割索引鍵的屬性。 |
GetPartitionKeyProperty(IReadOnlyEntityType)
傳回用來儲存資料分割索引鍵的屬性。
public static Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty? GetPartitionKeyProperty (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
<Extension()>
Public Function GetPartitionKeyProperty (entityType As IReadOnlyEntityType) As IReadOnlyProperty
參數
- entityType
- IReadOnlyEntityType
要為其取得資料分割索引鍵屬性的實體類型。
傳回
資料分割索引鍵屬性的名稱。
適用於
GetPartitionKeyProperty(IMutableEntityType)
傳回用來儲存資料分割索引鍵的屬性。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty? GetPartitionKeyProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function GetPartitionKeyProperty (entityType As IMutableEntityType) As IMutableProperty
參數
- entityType
- IMutableEntityType
要為其取得資料分割索引鍵屬性的實體類型。
傳回
資料分割索引鍵屬性的名稱。
適用於
GetPartitionKeyProperty(IConventionEntityType)
傳回用來儲存資料分割索引鍵的屬性。
public static Microsoft.EntityFrameworkCore.Metadata.IConventionProperty? GetPartitionKeyProperty (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
<Extension()>
Public Function GetPartitionKeyProperty (entityType As IConventionEntityType) As IConventionProperty
參數
- entityType
- IConventionEntityType
要為其取得資料分割索引鍵屬性的實體類型。
傳回
資料分割索引鍵屬性的名稱。
適用於
GetPartitionKeyProperty(IEntityType)
傳回用來儲存資料分割索引鍵的屬性。
public static Microsoft.EntityFrameworkCore.Metadata.IProperty? GetPartitionKeyProperty (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IProperty
<Extension()>
Public Function GetPartitionKeyProperty (entityType As IEntityType) As IProperty
參數
- entityType
- IEntityType
要為其取得資料分割索引鍵屬性的實體類型。
傳回
資料分割索引鍵屬性的名稱。