次の方法で共有


DecimalPropertyConvention クラス

定義

10 進数型のプロパティの有効桁数を 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)

モデル内の項目にこの規則を適用します。

適用対象