次の方法で共有


IMutableEntityType.FindPrimaryKey メソッド

定義

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

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

戻り値

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

適用対象