Sdílet prostřednictvím


RuntimeEntityType.IEntityType.FindKey Metoda

Definice

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

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

Parametry

properties
IReadOnlyList<IReadOnlyProperty>

Vlastnosti, které tvoří klíč.

Návraty

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

Implementuje

Atributy

Platí pro