Class BackingFieldAttributeConvention
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Conventions
- Assembly
- Microsoft.EntityFrameworkCore.dll
A convention that configures a property as having a backing field based on the Microsoft.EntityFrameworkCore.BackingFieldAttribute attribute.
public class BackingFieldAttributeConvention : PropertyAttributeConventionBase<BackingFieldAttribute>, IPropertyAddedConvention, IPropertyFieldChangedConvention, IComplexPropertyAddedConvention, IComplexPropertyFieldChangedConvention, IConvention
- Inheritance
-
PropertyAttributeConventionBase<BackingFieldAttribute>BackingFieldAttributeConvention
- Implements
- Inherited Members
Remarks
See Model building conventions for more information and examples.
Constructors
BackingFieldAttributeConvention(ProviderConventionSetBuilderDependencies)
Creates a new instance of BackingFieldAttributeConvention.
public BackingFieldAttributeConvention(ProviderConventionSetBuilderDependencies dependencies)
Parameters
dependencies
ProviderConventionSetBuilderDependenciesParameter object containing dependencies for this convention.
Methods
ProcessPropertyAdded(IConventionComplexPropertyBuilder, BackingFieldAttribute, MemberInfo, IConventionContext)
protected override void ProcessPropertyAdded(IConventionComplexPropertyBuilder propertyBuilder, BackingFieldAttribute attribute, MemberInfo clrMember, IConventionContext context)
Parameters
propertyBuilder
IConventionComplexPropertyBuilderattribute
BackingFieldAttributeclrMember
MemberInfocontext
IConventionContext
ProcessPropertyAdded(IConventionPropertyBuilder, BackingFieldAttribute, MemberInfo, IConventionContext)
protected override void ProcessPropertyAdded(IConventionPropertyBuilder propertyBuilder, BackingFieldAttribute attribute, MemberInfo clrMember, IConventionContext context)
Parameters
propertyBuilder
IConventionPropertyBuilderattribute
BackingFieldAttributeclrMember
MemberInfocontext
IConventionContext