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
要获取其分区键属性的实体类型。
返回
分区键属性的名称。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈