Share via


IReadOnlyEntityType.FindPrimaryKey メソッド

定義

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

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

戻り値

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

適用対象