Share via


PropertyExtensions.GetContainingPrimaryKey(IProperty) メソッド

定義

注意事項

Use FindContainingPrimaryKey()

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

public static Microsoft.EntityFrameworkCore.Metadata.IKey GetContainingPrimaryKey (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use FindContainingPrimaryKey()")]
public static Microsoft.EntityFrameworkCore.Metadata.IKey GetContainingPrimaryKey (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetContainingPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IKey
[<System.Obsolete("Use FindContainingPrimaryKey()")>]
static member GetContainingPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IKey
<Extension()>
Public Function GetContainingPrimaryKey (property As IProperty) As IKey

パラメーター

property
IProperty

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

戻り値

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

属性

適用対象