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); }
public static SqlExpression DateTimeSubtractTimeSpan(SqlExpression _this, [Type(typeof(TimeSpan))] SqlExpression value) { return(SqlDml.DateTimeMinusInterval(_this, value)); }
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)); }