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