Share via


IKeyAnnotationChangedConvention.ProcessKeyAnnotationChanged Method

Definition

Called after an annotation is changed on a key.

public void ProcessKeyAnnotationChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder keyBuilder, string name, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation annotation, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation oldAnnotation, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> context);
public void ProcessKeyAnnotationChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder keyBuilder, string name, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? annotation, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? oldAnnotation, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> context);
abstract member ProcessKeyAnnotationChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder * string * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> -> unit
Public Sub ProcessKeyAnnotationChanged (keyBuilder As IConventionKeyBuilder, name As String, annotation As IConventionAnnotation, oldAnnotation As IConventionAnnotation, context As IConventionContext(Of IConventionAnnotation))

Parameters

keyBuilder
IConventionKeyBuilder

The builder for the key.

name
String

The annotation name.

annotation
IConventionAnnotation

The new annotation.

oldAnnotation
IConventionAnnotation

The old annotation.

context
IConventionContext<IConventionAnnotation>

Additional information associated with convention execution.

Applies to