Sdílet prostřednictvím


RuntimeEntityType.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íč.

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey? IReadOnlyEntityType.FindPrimaryKey ();
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey IReadOnlyEntityType.FindPrimaryKey ();
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindPrimaryKey : unit -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindPrimaryKey : unit -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey
Function FindPrimaryKey () As IReadOnlyKey Implements IReadOnlyEntityType.FindPrimaryKey

Návraty

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

Implementuje

Atributy

Platí pro