Compartilhar via


RuntimeEntityType.IEntityType.FindKey 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.

[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

Parâmetros

properties
IReadOnlyList<IReadOnlyProperty>

As propriedades que compõem a chave.

Retornos

A chave ou null se nenhuma estiver definida.

Implementações

Atributos

Aplica-se a