Table of Contents

Interface IPropertyFieldChangedConvention

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

Represents an operation that should be performed when the backing field for a property is changed.

public interface IPropertyFieldChangedConvention : IConvention

Remarks

See Model building conventions for more information and examples.

Methods

ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo?, FieldInfo?, IConventionContext<FieldInfo>)

Called after the backing field for a property is changed.

void ProcessPropertyFieldChanged(IConventionPropertyBuilder propertyBuilder, FieldInfo? newFieldInfo, FieldInfo? oldFieldInfo, IConventionContext<FieldInfo> context)

Parameters

propertyBuilder IConventionPropertyBuilder

The builder for the property.

newFieldInfo FieldInfo

The new field.

oldFieldInfo FieldInfo

The old field.

context IConventionContext<FieldInfo>

Additional information associated with convention execution.