IConventionEntityType.FindKey Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
FindKey(IReadOnlyProperty) |
Obtém a chave primária ou alternativa definida na propriedade fornecida. Retornará |
FindKey(IReadOnlyList<IProperty>) |
Obtém a chave primária ou alternativa definida nas propriedades fornecidas.
Retornará |
FindKey(IReadOnlyList<IReadOnlyProperty>) |
Obtém a chave primária ou alternativa definida nas propriedades fornecidas.
Retornará |
FindKey(IReadOnlyProperty)
Obtém a chave primária ou alternativa definida na propriedade fornecida. Retornará null
se nenhuma chave for definida para a propriedade fornecida.
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionKey? FindKey (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
override this.FindKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
Public Overridable Function FindKey (property As IReadOnlyProperty) As IConventionKey
Parâmetros
- property
- IReadOnlyProperty
A propriedade na qual a chave é definida.
Retornos
A chave ou nulo se nenhuma for definida.
Aplica-se a
FindKey(IReadOnlyList<IProperty>)
Obtém a chave primária ou alternativa definida nas propriedades fornecidas.
Retornará null
se nenhuma chave for definida para as propriedades fornecidas.
public Microsoft.EntityFrameworkCore.Metadata.IConventionKey FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
abstract member FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
Public Function FindKey (properties As IReadOnlyList(Of IProperty)) As IConventionKey
Parâmetros
- properties
- IReadOnlyList<IProperty>
As propriedades que compõem a chave.
Retornos
A chave ou null
se nenhuma estiver definida.
Aplica-se a
FindKey(IReadOnlyList<IReadOnlyProperty>)
Obtém a chave primária ou alternativa definida nas propriedades fornecidas.
Retornará null
se nenhuma chave for definida para as propriedades fornecidas.
public Microsoft.EntityFrameworkCore.Metadata.IConventionKey? FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
Public Function FindKey (properties As IReadOnlyList(Of IReadOnlyProperty)) As IConventionKey
Parâmetros
- properties
- IReadOnlyList<IReadOnlyProperty>
As propriedades que compõem a chave.
Retornos
A chave ou null
se nenhuma estiver definida.
Aplica-se a
Entity Framework