PropertyExtensions.FindContainingPrimaryKey(IProperty) メソッド

定義

このプロパティを使用する主キー (このプロパティが含まれる複合主キーを含む) を取得します。

public static Microsoft.EntityFrameworkCore.Metadata.IKey FindContainingPrimaryKey (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindContainingPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IKey
<Extension()>
Public Function FindContainingPrimaryKey (property As IProperty) As IKey

パラメーター

property
IProperty

主キーを取得するプロパティ。

戻り値

このプロパティを使用するプライマリ。または null 主キーの一部でない場合は 。

適用対象