Example #1
0
 public void DateTimeMillisecond()
 {
     using (new SoodaTransaction())
     {
         bool b = AllDataTypes.Linq().Any(a => a.NnDateVal.Millisecond == 123);
         Assert.IsTrue(b);
         b = AllDataTypes.Linq().Any(a => a.NnDateVal.Millisecond == 0);
         Assert.IsFalse(b);
     }
 }
Example #2
0
 public void DateTimeDayOfYear()
 {
     using (new SoodaTransaction())
     {
         bool b = AllDataTypes.Linq().Any(a => a.NnDateVal.DayOfYear == 204);
         Assert.IsTrue(b);
         b = AllDataTypes.Linq().Any(a => a.NnDateVal.DayOfYear == 203);
         Assert.IsFalse(b);
     }
 }
Example #3
0
 public void DateTimeHour()
 {
     using (new SoodaTransaction())
     {
         bool b = AllDataTypes.Linq().Any(a => a.NnDateVal.Hour == 13);
         Assert.IsTrue(b);
         b = AllDataTypes.Linq().Any(a => a.NnDateVal.Hour == 1);
         Assert.IsFalse(b);
     }
 }
Example #4
0
 public void DateTimeMonth()
 {
     using (new SoodaTransaction())
     {
         bool b = AllDataTypes.Linq().Any(a => a.NnDateVal.Month == 7);
         Assert.IsTrue(b);
         b = AllDataTypes.Linq().Any(a => a.NnDateVal.Month == 6);
         Assert.IsFalse(b);
     }
 }