ConventionEntityTypeExtensions.GetDeclaredProperties メソッド

定義

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

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

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

パラメーター

entityType
IConventionEntityType

エンティティの型。

戻り値

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

適用対象