public ExpressionToSql <T> OrderByDesc(Expression <Func <T, object> > expression) { if (expression == null) { throw new ArgumentNullException("expression", "Value cannot be null"); } this._sqlBuilder += "\norder by "; Expression2SqlProvider.OrderByDesc(expression.Body, this._sqlBuilder); this._sqlBuilder += " desc "; return(this); }
protected override SqlBuilder OrderByDesc(UnaryExpression expression, SqlBuilder sqlBuilder) { Expression2SqlProvider.OrderByDesc(expression.Operand, sqlBuilder); return(sqlBuilder); }