次の方法で共有


EntityTypeExtensions.FindIndex(IEntityType, IProperty) メソッド

定義

指定されたプロパティで定義されている名前のないインデックスを取得します。 このようなインデックスが null 定義されていない場合は を返します。

名前付きインデックスは、プロパティの一覧が一致しても返されません。

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

パラメーター

entityType
IEntityType

エンティティの型。

property
IProperty

インデックスを検索するプロパティ。

戻り値

インデックス。見つからない場合は null。

適用対象