Interface IPropertyAnnotationChangedConvention
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Conventions
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents an operation that should be performed when an annotation is changed on a property.
public interface IPropertyAnnotationChangedConvention : IConvention
Remarks
See Model building conventions for more information and examples.
Methods
ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, string, IConventionAnnotation?, IConventionAnnotation?, IConventionContext<IConventionAnnotation>)
Called after an annotation is changed on a property.
void ProcessPropertyAnnotationChanged(IConventionPropertyBuilder propertyBuilder, string name, IConventionAnnotation? annotation, IConventionAnnotation? oldAnnotation, IConventionContext<IConventionAnnotation> context)
Parameters
propertyBuilder
IConventionPropertyBuilderThe builder for the property.
name
stringThe annotation name.
annotation
IConventionAnnotationThe new annotation.
oldAnnotation
IConventionAnnotationThe old annotation.
context
IConventionContext<IConventionAnnotation>Additional information associated with convention execution.