次の方法で共有


EntityTypeExtensions.FindProperty メソッド

定義

オーバーロード

FindProperty(IEntityType, MemberInfo)

指定されたメンバー情報を持つプロパティを取得します。 プロパティが null 見つからない場合は を返します。

この API はスカラー プロパティのみを検索し、ナビゲーション プロパティは見つかりません。 ナビゲーション プロパティを検索するには、 を使用 FindNavigation(IEntityType, MemberInfo) します。

FindProperty(IEntityType, PropertyInfo)

指定したエンティティ型のプロパティを取得します。 プロパティが見つからない場合は null を返します。

この API はスカラー プロパティのみを検索し、ナビゲーション プロパティは見つかりません。 ナビゲーション プロパティを検索するには、 を使用 FindNavigation(IEntityType, PropertyInfo) します。

FindProperty(IEntityType, MemberInfo)

指定されたメンバー情報を持つプロパティを取得します。 プロパティが null 見つからない場合は を返します。

この API はスカラー プロパティのみを検索し、ナビゲーション プロパティは見つかりません。 ナビゲーション プロパティを検索するには、 を使用 FindNavigation(IEntityType, MemberInfo) します。

public static Microsoft.EntityFrameworkCore.Metadata.IProperty FindProperty (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Reflection.MemberInfo memberInfo);
static member FindProperty : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IProperty
<Extension()>
Public Function FindProperty (entityType As IEntityType, memberInfo As MemberInfo) As IProperty

パラメーター

entityType
IEntityType

エンティティの型。

memberInfo
MemberInfo

エンティティ クラスのメンバー。

戻り値

プロパティ。何 null も見つからない場合は 。

適用対象

FindProperty(IEntityType, PropertyInfo)

指定したエンティティ型のプロパティを取得します。 プロパティが見つからない場合は null を返します。

この API はスカラー プロパティのみを検索し、ナビゲーション プロパティは見つかりません。 ナビゲーション プロパティを検索するには、 を使用 FindNavigation(IEntityType, PropertyInfo) します。

public static Microsoft.EntityFrameworkCore.Metadata.IProperty FindProperty (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member FindProperty : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.IProperty
<Extension()>
Public Function FindProperty (entityType As IEntityType, propertyInfo As PropertyInfo) As IProperty

パラメーター

entityType
IEntityType

プロパティを検索するエンティティの種類。

propertyInfo
PropertyInfo

エンティティ クラスの プロパティ。

戻り値

プロパティ。見つからない場合は null。

適用対象