MutableEntityTypeExtensions.FindIndex(IMutableEntityType, IProperty) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取在给定属性上定义的索引。 如果未定义索引,则返回 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。