IEntityType.FindPrimaryKey メソッド

定義

このエンティティ型の主キーを取得します。 主キーが null 定義されていない場合は を返します。

public Microsoft.EntityFrameworkCore.Metadata.IKey FindPrimaryKey ();
public Microsoft.EntityFrameworkCore.Metadata.IKey? FindPrimaryKey ();
abstract member FindPrimaryKey : unit -> Microsoft.EntityFrameworkCore.Metadata.IKey
Public Function FindPrimaryKey () As IKey

戻り値

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

適用対象