Mercurial > pub > bltoolkit
view Source/Mapping/NullDecimalAttribute.cs @ 3:1ef98bd70424
!bug 100 +3h
Исправление проблемы BLToolkit + mono 3.4
author | cin |
---|---|
date | Fri, 22 Aug 2014 17:34:46 +0400 |
parents | f990fcb411a9 |
children |
line wrap: on
line source
using System; namespace BLToolkit.Mapping { public class NullDecimalAttribute : NullValueAttribute { public NullDecimalAttribute() : base(0m) { } public NullDecimalAttribute(decimal nullValue) : base(nullValue) { } public NullDecimalAttribute(double value) : base(new Decimal(value)) { } public NullDecimalAttribute(int[] bits) : base(new Decimal(bits)) { } public NullDecimalAttribute(long value) : base(new Decimal(value)) { } [CLSCompliant(false)] public NullDecimalAttribute(ulong value) : base(new Decimal(value)) { } public NullDecimalAttribute(int lo, int mid, int hi, bool isNegative, byte scale) : base(new Decimal(lo, mid, hi, isNegative, scale)) { } } }