MutableEntityTypeExtensions.FindKey(IMutableEntityType, IProperty) メソッド

定義

指定されたプロパティで定義されている主キーまたは代替キーを取得します。 指定されたプロパティに 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。

適用対象