次の方法で共有


RuntimeEntityType.IEntityType.FindPrimaryKey メソッド

定義

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

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IKey? IEntityType.FindPrimaryKey ();
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IKey IEntityType.FindPrimaryKey ();
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IEntityType.FindPrimaryKey : unit -> Microsoft.EntityFrameworkCore.Metadata.IKey
override this.Microsoft.EntityFrameworkCore.Metadata.IEntityType.FindPrimaryKey : unit -> Microsoft.EntityFrameworkCore.Metadata.IKey
Function FindPrimaryKey () As IKey Implements IEntityType.FindPrimaryKey

戻り値

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

実装

属性

適用対象