Udostępnij za pośrednictwem


IReadOnlyEntityType.FindPrimaryKey Metoda

Definicja

Pobiera klucz podstawowy dla tego typu jednostki. Zwraca wartość null , jeśli nie zdefiniowano klucza podstawowego.

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

Zwraca

Klucz podstawowy lub null jeśli żaden nie jest zdefiniowany.

Dotyczy