ConventionEntityTypeExtensions.FindKey メソッド

定義

指定されたプロパティで定義されている主キーまたは代替キーを取得します。 指定されたプロパティに null 対してキーが定義されていない場合は を返します。

public static Microsoft.EntityFrameworkCore.Metadata.IConventionKey FindKey (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindKey : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
<Extension()>
Public Function FindKey (entityType As IConventionEntityType, property As IProperty) As IConventionKey

パラメーター

entityType
IConventionEntityType

エンティティの型。

property
IProperty

キーが定義されているプロパティ。

戻り値

キー。定義されていない場合は null。

適用対象