Table of Contents

Interface IComplexPropertyAnnotationChangedConvention

Namespace
Microsoft.EntityFrameworkCore.Metadata.Conventions
Assembly
Microsoft.EntityFrameworkCore.dll

Represents an operation that should be performed when an annotation is changed on a complex property.

public interface IComplexPropertyAnnotationChangedConvention : IConvention

Remarks

See Model building conventions for more information and examples.

Methods

ProcessComplexPropertyAnnotationChanged(IConventionComplexPropertyBuilder, string, IConventionAnnotation?, IConventionAnnotation?, IConventionContext<IConventionAnnotation>)

Called after an annotation is changed on a complex property.

void ProcessComplexPropertyAnnotationChanged(IConventionComplexPropertyBuilder propertyBuilder, string name, IConventionAnnotation? annotation, IConventionAnnotation? oldAnnotation, IConventionContext<IConventionAnnotation> context)

Parameters

propertyBuilder IConventionComplexPropertyBuilder

The builder for the complex property.

name string

The annotation name.

annotation IConventionAnnotation

The new annotation.

oldAnnotation IConventionAnnotation

The old annotation.

context IConventionContext<IConventionAnnotation>

Additional information associated with convention execution.