public virtual void DateTimeTruncateTest()
        {
            var select = SqlDml.Select();

            select.Columns.Add(
                SqlDml.DateTimeTruncate(new DateTime(2005, 1, 1, 1, 1, 1, 1)));
            select.Columns.Add(new DateTime(2005, 1, 1));
            CompareColumnEquality(select);
        }
예제 #2
0
 protected SqlExpression DateTimeOffsetTimeOfDay(SqlExpression timestamp)
 {
     return(DateTimeOffsetSubstract(timestamp, SqlDml.DateTimeTruncate(timestamp)));
 }
예제 #3
0
 public static SqlExpression DateTimeDate(SqlExpression _this)
 {
     return(SqlDml.DateTimeTruncate(_this));
 }
예제 #4
0
 public static SqlExpression DateTimeTimeOfDay(SqlExpression _this)
 {
     return(SqlDml.DateTimeMinusDateTime(_this, SqlDml.DateTimeTruncate(_this)));
 }
 public virtual void DateTimeTruncateTest()
 {
     CheckEquality(
         SqlDml.DateTimeTruncate(DefaultDateTime),
         DefaultDateTime.Date);
 }