comparison Source/Mapping/NullDecimalAttribute.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 using System;
2
3 namespace BLToolkit.Mapping
4 {
5 public class NullDecimalAttribute : NullValueAttribute
6 {
7 public NullDecimalAttribute()
8 : base(0m)
9 {
10 }
11
12 public NullDecimalAttribute(decimal nullValue)
13 : base(nullValue)
14 {
15 }
16
17 public NullDecimalAttribute(double value)
18 : base(new Decimal(value))
19 {
20 }
21
22 public NullDecimalAttribute(int[] bits)
23 : base(new Decimal(bits))
24 {
25 }
26
27 public NullDecimalAttribute(long value)
28 : base(new Decimal(value))
29 {
30 }
31
32 [CLSCompliant(false)]
33 public NullDecimalAttribute(ulong value)
34 : base(new Decimal(value))
35 {
36 }
37
38 public NullDecimalAttribute(int lo, int mid, int hi, bool isNegative, byte scale)
39 : base(new Decimal(lo, mid, hi, isNegative, scale))
40 {
41 }
42 }
43 }