次の方法で共有


ConventionEntityTypeExtensions.FindProperty メソッド

定義

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

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

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

パラメーター

entityType
IConventionEntityType

エンティティの型。

memberInfo
MemberInfo

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

戻り値

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

適用対象