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。

適用於