MutableEntityTypeExtensions.FindKey(IMutableEntityType, IProperty) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定されたプロパティで定義されている主キーまたは代替キーを取得します。 指定されたプロパティに null
対してキーが定義されていない場合は を返します。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableKey FindKey (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindKey : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
<Extension()>
Public Function FindKey (entityType As IMutableEntityType, property As IProperty) As IMutableKey
パラメーター
- entityType
- IMutableEntityType
エンティティの型。
- property
- IProperty
キーが定義されているプロパティ。
戻り値
キー。定義されていない場合は null。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework