次の方法で共有


IEntityType.GetDeclaredProperties メソッド

定義

指定 IEntityTypeした で宣言されているすべての非ナビゲーション プロパティを取得します。

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

戻り値

ナビゲーション以外のプロパティを宣言しました。

実装

注釈

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

適用対象