view Source/Mapping/NullDecimalAttribute.cs @ 9:1e85f66cf767 default tip

update bltoolkit
author nickolay
date Thu, 05 Apr 2018 20:53:26 +0300
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))
		{
		}
	}
}