0
|
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 }
|