Compartir a través de


KeyDiscoveryConvention.TryConfigurePrimaryKey Método

Definición

Detecta candidatos de clave principal y configura la clave principal si se encuentra.

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)

Parámetros

entityTypeBuilder
IConventionEntityTypeBuilder

Generador de tipos de entidad.

Se aplica a