Partager via


ValueGenerationConvention.ProcessEntityTypePrimaryKeyChanged Méthode

Définition

Appelé après la modification de la clé primaire d’un type d’entité.

public virtual void ProcessEntityTypePrimaryKeyChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.IConventionKey newPrimaryKey, Microsoft.EntityFrameworkCore.Metadata.IConventionKey previousPrimaryKey, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionKey> context);
public virtual void ProcessEntityTypePrimaryKeyChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.IConventionKey? newPrimaryKey, Microsoft.EntityFrameworkCore.Metadata.IConventionKey? previousPrimaryKey, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionKey> context);
abstract member ProcessEntityTypePrimaryKeyChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionKey> -> unit
override this.ProcessEntityTypePrimaryKeyChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionKey> -> unit
Public Overridable Sub ProcessEntityTypePrimaryKeyChanged (entityTypeBuilder As IConventionEntityTypeBuilder, newPrimaryKey As IConventionKey, previousPrimaryKey As IConventionKey, context As IConventionContext(Of IConventionKey))

Paramètres

entityTypeBuilder
IConventionEntityTypeBuilder

Générateur pour le type d’entité.

newPrimaryKey
IConventionKey

Nouvelle clé primaire.

previousPrimaryKey
IConventionKey

Ancienne clé primaire.

context
IConventionContext<IConventionKey>

Informations supplémentaires associées à l’exécution de la convention.

Implémente

S’applique à