ConventionEntityTypeExtensions.GetDeclaredKeys(IConventionEntityType) メソッド

定義

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

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

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

パラメーター

entityType
IConventionEntityType

エンティティの型。

戻り値

宣言されたキー。

適用対象