語言

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
實作

建構函式

名稱 Description
DecimalPropertyConvention()

以預設的精度和縮放初始化一個 DecimalPropertyConvention 新的實例。

DecimalPropertyConvention(Byte, Byte)

以指定的精度與尺度初始化一個新的 實 DecimalPropertyConvention 例。

方法

名稱 Description
Apply(EdmProperty, DbModel)

將此慣例應用於模型中的一個項目。

適用於