Sdílet prostřednictvím


IReadOnlyEntityType.FindPrimaryKey Metoda

Definice

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

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

Návraty

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

Platí pro