MutableEntityTypeExtensions.FindProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したエンティティ型のプロパティを取得します。 プロパティが 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
、何も見つからない場合は 。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework