Udostępnij za pośrednictwem


IMutableEntityType.FindPrimaryKey Metoda

Definicja

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

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

Zwraca

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

Dotyczy