MutableEntityTypeExtensions.FindProperty メソッド

定義

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

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

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

パラメーター

entityType
IMutableEntityType

エンティティの型。

propertyInfo
PropertyInfo

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

戻り値

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

適用対象