0
|
1 using System;
|
|
2
|
|
3 namespace BLToolkit.Mapping
|
|
4 {
|
|
5 public class NullDateTimeAttribute : NullValueAttribute
|
|
6 {
|
|
7 public NullDateTimeAttribute()
|
|
8 : base(DateTime.MinValue)
|
|
9 {
|
|
10 }
|
|
11
|
|
12 public NullDateTimeAttribute(int year, int month, int day)
|
|
13 : base(new DateTime(year, month, day))
|
|
14 {
|
|
15 }
|
|
16
|
|
17 public NullDateTimeAttribute(int year, int month, int day, int hour, int minute, int second)
|
|
18 : base(new DateTime(year, month, day, hour, minute, second))
|
|
19 {
|
|
20 }
|
|
21
|
|
22 public NullDateTimeAttribute(int year, int month, int day, int hour, int minute, int second, int millisecond)
|
|
23 : base(new DateTime(year, month, day, hour, minute, second, millisecond))
|
|
24 {
|
|
25 }
|
|
26 }
|
|
27 }
|