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

            select.Columns.Add(
                SqlDml.DateTimeMinusInterval(new DateTime(2005, 5, 5, 5, 5, 5, 5), new TimeSpan(4, 4, 4, 4, 4)));
            select.Columns.Add(new DateTime(2005, 5, 1, 1, 1, 1, 1));
            CompareColumnEquality(select);
        }
示例#2
0
 public static SqlExpression DateTimeSubtractTimeSpan(SqlExpression _this,
                                                      [Type(typeof(TimeSpan))] SqlExpression value)
 {
     return(SqlDml.DateTimeMinusInterval(_this, value));
 }
示例#3
0
 public static SqlExpression DateTimeOperatorSubtractionTimeSpan(
     [Type(typeof(DateTime))] SqlExpression d,
     [Type(typeof(TimeSpan))] SqlExpression t)
 {
     return(SqlDml.DateTimeMinusInterval(d, t));
 }
 public virtual void DateTimeSubtractIntervalTest()
 {
     CheckEquality(
         SqlDml.DateTimeMinusInterval(DefaultDateTime, DefaultTimeSpan),
         DefaultDateTime.Subtract(DefaultTimeSpan));
 }