ConventionEntityTypeExtensions.GetDeclaredIndexes メソッド

定義

指定 IConventionEntityTypeした で宣言されているすべてのインデックスを取得します。

このメソッドは、基本型で宣言されたインデックスを返しません。 同じインデックスを複数回処理しないように、すべてのエンティティ型を反復処理する場合に便利です。 を使用して GetForeignKeys() 、基本型で宣言されたインデックスも返します。

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionIndex> GetDeclaredIndexes (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
static member GetDeclaredIndexes : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionIndex>
<Extension()>
Public Function GetDeclaredIndexes (entityType As IConventionEntityType) As IEnumerable(Of IConventionIndex)

パラメーター

entityType
IConventionEntityType

エンティティの型。

戻り値

宣言されたインデックス。

適用対象