KeyDiscoveryConvention.DiscoverKeyProperties Metoda

Definicja

Zwraca właściwości, które powinny być używane dla klucza podstawowego.

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)

Parametry

entityType
IConventionEntityType

Typ jednostki.

candidateProperties
IEnumerable<IConventionProperty>

Właściwości do rozważenia.

Zwraca

Właściwości, które powinny być używane dla klucza podstawowego.

Dotyczy