CosmosEntityTypeExtensions.GetPartitionKeyProperty 方法

定义

重载

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

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

返回

分区键属性的名称。

适用于