KeyDiscoveryConvention.DiscoverKeyProperties Método

Definição

Retorna as propriedades que devem ser usadas para a chave primária.

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> DiscoverKeyProperties (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> candidateProperties);
static member DiscoverKeyProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * seq<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
Public Shared Function DiscoverKeyProperties (entityType As IConventionEntityType, candidateProperties As IEnumerable(Of IConventionProperty)) As IEnumerable(Of IConventionProperty)

Parâmetros

entityType
IConventionEntityType

O tipo de entidade.

candidateProperties
IEnumerable<IConventionProperty>

As propriedades a serem consideradas.

Retornos

As propriedades que devem ser usadas para a chave primária.

Aplica-se a