Compartilhar via


RelationalKeyDiscoveryConvention.DiscoverKeyProperties Method

Definition

Returns the properties that should be used for the primary key.

protected override System.Collections.Generic.List<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? DiscoverKeyProperties (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
override this.DiscoverKeyProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> System.Collections.Generic.List<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
Protected Overrides Function DiscoverKeyProperties (entityType As IConventionEntityType) As List(Of IConventionProperty)

Parameters

entityType
IConventionEntityType

The entity type.

Returns

The properties that should be used for the primary key.

Applies to