comparison Source/Mapping/NullDateTimeAttribute.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 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 }