Condividi tramite


KeyDiscoveryConvention.TryConfigurePrimaryKey Metodo

Definizione

Individua i candidati per la chiave primaria e configura la chiave primaria, se presente.

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)

Parametri

entityTypeBuilder
IConventionEntityTypeBuilder

Generatore di tipi di entità.

Si applica a