KeyDiscoveryConvention.DiscoverKeyProperties Метод

Определение

Возвращает свойства, которые следует использовать для первичного ключа.

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)

Параметры

entityType
IConventionEntityType

Тип сущности.

candidateProperties
IEnumerable<IConventionProperty>

Свойства, которые следует учитывать.

Возвращаемое значение

Свойства, которые следует использовать для первичного ключа.

Применяется к