共用方式為


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)

將此慣例套用至模型中的專案。

適用於