Share via


DecimalPropertyConvention Class

Definition

Convention to set precision to 18 and scale to 2 for decimal properties.

public class DecimalPropertyConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.EdmProperty>
type DecimalPropertyConvention = class
    interface IConceptualModelConvention<EdmProperty>
    interface IConvention
Public Class DecimalPropertyConvention
Implements IConceptualModelConvention(Of EdmProperty)
Inheritance
DecimalPropertyConvention
Implements

Constructors

DecimalPropertyConvention()

Initializes a new instance of DecimalPropertyConvention with the default precision and scale.

DecimalPropertyConvention(Byte, Byte)

Initializes a new instance of DecimalPropertyConvention with the specified precision and scale.

Methods

Apply(EdmProperty, DbModel)

Applies this convention to an item in the model.

Applies to