RuntimeEntityType.IReadOnlyEntityType.FindPrimaryKey Method

Definition

Gets primary key for this entity type. Returns null if no primary key is defined.

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

Returns

The primary key, or null if none is defined.

Implements

Attributes

Applies to