Compartilhar via


RuntimeEntityType.FindKey(IReadOnlyList<IReadOnlyProperty>) Método

Definição

Obtém a chave primária ou alternativa definida nas propriedades fornecidas. Retornará null se nenhuma chave for definida para as propriedades fornecidas.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeKey? FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
override this.FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
Public Overridable Function FindKey (properties As IReadOnlyList(Of IReadOnlyProperty)) As RuntimeKey

Parâmetros

properties
IReadOnlyList<IReadOnlyProperty>

As propriedades que compõem a chave.

Retornos

A chave ou null se nenhuma estiver definida.

Aplica-se a