KeyDiscoveryConvention.TryConfigurePrimaryKey(IConventionEntityTypeBuilder) Método

Definição

Descobre os candidatos à chave primária e configura a chave primária, se encontrada.

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

O construtor de tipo de entidade.

Aplica-se a