DecimalPropertyConvention 类

定义

用于为小数属性将精度设置为 18 并将小数位数设置为 2 的约定。

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)
继承
DecimalPropertyConvention
实现

构造函数

DecimalPropertyConvention()

使用默认精度和小数位数初始化 的新实例 DecimalPropertyConvention

DecimalPropertyConvention(Byte, Byte)

使用指定的精度和小数位数初始化 的新 DecimalPropertyConvention 实例。

方法

Apply(EdmProperty, DbModel)

将此约定应用于模型中的项。

适用于