Freigeben über


KeyDiscoveryConvention.DiscoverKeyProperties Methode

Definition

Gibt die Eigenschaften zurück, die für den Primärschlüssel verwendet werden sollen.

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)

Parameter

entityType
IConventionEntityType

Der Entitätstyp.

candidateProperties
IEnumerable<IConventionProperty>

Die zu berücksichtigenden Eigenschaften.

Gibt zurück

Die Eigenschaften, die für den Primärschlüssel verwendet werden sollen.

Gilt für: