Freigeben über


KeyDiscoveryConvention.TryConfigurePrimaryKey Methode

Definition

Ermittelt Primärschlüsselkandidaten und konfiguriert den Primärschlüssel, falls gefunden.

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)

Parameter

entityTypeBuilder
IConventionEntityTypeBuilder

Der Entitätstyp-Generator.

Gilt für: