ConventionEntityTypeExtensions.FindIndex 方法

定义

获取在给定属性上定义的未命名索引。 null如果未定义此类索引,则返回 。

即使属性列表匹配,也不会返回命名索引。

public static Microsoft.EntityFrameworkCore.Metadata.IConventionIndex FindIndex (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
<Extension()>
Public Function FindIndex (entityType As IConventionEntityType, property As IProperty) As IConventionIndex

参数

entityType
IConventionEntityType

实体类型。

property
IProperty

要查找索引的属性。

返回

索引;如果找不到任何索引,则为 null。

适用于