Share via


KeyDiscoveryConvention.TryConfigurePrimaryKey Method

Definition

Discovers primary key candidates and configures the primary key if found.

protected virtual void TryConfigurePrimaryKey (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder);
abstract member TryConfigurePrimaryKey : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder -> unit
override this.TryConfigurePrimaryKey : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder -> unit
Protected Overridable Sub TryConfigurePrimaryKey (entityTypeBuilder As IConventionEntityTypeBuilder)

Parameters

entityTypeBuilder
IConventionEntityTypeBuilder

The entity type builder.

Applies to