KeyDiscoveryConvention.DiscoverKeyProperties(IConventionEntityType, IEnumerable<IConventionProperty>) Yöntem

Tanım

Birincil anahtar için kullanılması gereken özellikleri döndürür.

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)

Parametreler

entityType
IConventionEntityType

Varlık türü.

candidateProperties
IEnumerable<IConventionProperty>

Göz önünde bulundurulması gereken özellikler.

Döndürülenler

IEnumerable<IConventionProperty>

Birincil anahtar için kullanılması gereken özellikler.

Şunlara uygulanır