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

            select.Columns.Add(SqlDml.DateTimeAddYears(new DateTime(2001, 1, 1), 5));
            select.Columns.Add(new DateTime(2006, 1, 1));
            CompareColumnEquality(select);
        }
Beispiel #2
0
 public static SqlExpression DateTimeAddYears(SqlExpression _this,
                                              [Type(typeof(int))] SqlExpression value)
 {
     return(SqlDml.DateTimeAddYears(_this, value));
 }
 public virtual void DateTimeAddYearsTest()
 {
     CheckEquality(
         SqlDml.DateTimeAddYears(DefaultDateTime, AddYearsConst),
         DefaultDateTime.AddYears(AddYearsConst));
 }