Table of Contents

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
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 ProviderConventionSetBuilderDependencies

Parameter 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 IConventionComplexPropertyBuilder
attribute PrecisionAttribute
clrMember MemberInfo
context IConventionContext

ProcessPropertyAdded(IConventionPropertyBuilder, PrecisionAttribute, MemberInfo, IConventionContext)

protected override void ProcessPropertyAdded(IConventionPropertyBuilder propertyBuilder, PrecisionAttribute attribute, MemberInfo clrMember, IConventionContext context)

Parameters

propertyBuilder IConventionPropertyBuilder
attribute PrecisionAttribute
clrMember MemberInfo
context IConventionContext