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。

適用於