KeyDiscoveryConvention.ProcessKeyProperties Method

Definition

Adds or removes properties to be used for the primary key.

C#
protected virtual void ProcessKeyProperties (System.Collections.Generic.IList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> keyProperties, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);

Parameters

keyProperties
IList<IConventionProperty>

The properties that will be used to configure the key.

entityType
IConventionEntityType

The entity type being configured.

Applies to

Proizvod Verzije
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0