EntityTypeExtensions.FindProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
FindProperty(IEntityType, MemberInfo) |
指定されたメンバー情報を持つプロパティを取得します。 プロパティが この 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。
適用対象
Entity Framework