语言

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)

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

适用于