protected override SqlBuilder OrderByDescending(NewExpression expression, SqlBuilder sqlBuilder)
 {
     foreach (Expression item in expression.Arguments)
     {
         SqlProvider.OrderByDescending(item, sqlBuilder);
     }
     return(sqlBuilder);
 }
Example #2
0
        public SqlQueryable <T> OrderByDescending(Expression <Func <T, object> > expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression", "Value cannot be null");
            }

            this._sqlBuilder.SqlOrderStr += " order by ";
            SqlProvider.OrderByDescending(expression.Body, this._sqlBuilder);
            return(this);
        }
Example #3
0
 protected override SqlBuilder OrderByDescending(UnaryExpression expression, SqlBuilder sqlBuilder)
 {
     SqlProvider.OrderByDescending(expression.Operand, sqlBuilder);
     return(sqlBuilder);
 }