Udostępnij za pośrednictwem


RuntimeEntityType.IEntityType.FindPrimaryKey Metoda

Definicja

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

[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

Zwraca

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

Implementuje

Atrybuty

Dotyczy