Sdílet prostřednictvím


RuntimeEntityType.IEntityType.FindPrimaryKey Metoda

Definice

Získá primární klíč pro tento typ entity. Vrátí hodnotu null , pokud není definován žádný primární klíč.

[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

Návraty

Primární klíč, nebo null pokud není definován žádný.

Implementuje

Atributy

Platí pro