MutableEntityTypeExtensions.FindIndex(IMutableEntityType, IProperty) 方法

定义

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

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

参数

entityType
IMutableEntityType

实体类型。

property
IProperty

要查找索引的属性。

返回

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

适用于