Interface IComplexPropertyFieldChangedConvention
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Conventions
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents an operation that should be performed when the backing field for a complex property is changed.
public interface IComplexPropertyFieldChangedConvention : IConvention
Remarks
See Model building conventions for more information and examples.
Methods
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo?, FieldInfo?, IConventionContext<FieldInfo>)
Called after the backing field for a complex property is changed.
void ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder propertyBuilder, FieldInfo? newFieldInfo, FieldInfo? oldFieldInfo, IConventionContext<FieldInfo> context)
Parameters
propertyBuilder
IConventionComplexPropertyBuilderThe builder for the property.
newFieldInfo
FieldInfoThe new field.
oldFieldInfo
FieldInfoThe old field.
context
IConventionContext<FieldInfo>Additional information associated with convention execution.