Sdílet prostřednictvím


RuntimeEntityType.IReadOnlyEntityType.FindKey Metoda

Definice

Získá primární nebo alternativní klíč, který je definován na dané vlastnosti. Vrátí hodnotu null , pokud není pro dané vlastnosti definován žádný klíč.

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey? IReadOnlyEntityType.FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey IReadOnlyEntityType.FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey
Function FindKey (properties As IReadOnlyList(Of IReadOnlyProperty)) As IReadOnlyKey Implements IReadOnlyEntityType.FindKey

Parametry

properties
IReadOnlyList<IReadOnlyProperty>

Vlastnosti, které tvoří klíč.

Návraty

Klíč, nebo null pokud není definován žádný.

Implementuje

Atributy

Platí pro