次の方法で共有


IEntityType.GetDeclaredKeys メソッド

定義

指定 IReadOnlyEntityTypeした で宣言されているすべてのキーを取得します。

public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IKey> GetDeclaredKeys ();
abstract member GetDeclaredKeys : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IKey>
Public Function GetDeclaredKeys () As IEnumerable(Of IKey)

戻り値

宣言されたキー。

注釈

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

適用対象