示例#1
0
        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);
        }
示例#2
0
 protected override SqlBuilder OrderByDesc(UnaryExpression expression, SqlBuilder sqlBuilder)
 {
     Expression2SqlProvider.OrderByDesc(expression.Operand, sqlBuilder);
     return(sqlBuilder);
 }