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); } }
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); } }
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); } }
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); } }