Exemplo n.º 1
0
 protected override SqlBuilder OrderBy(NewExpression expression, SqlBuilder sqlBuilder)
 {
     foreach (Expression item in expression.Arguments)
     {
         Expression2SqlProvider.OrderBy(item, sqlBuilder);
     }
     return(sqlBuilder);
 }
Exemplo n.º 2
0
        public ExpressionToSql <T> OrderBy(Expression <Func <T, object> > expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression", "Value cannot be null");
            }

            this._sqlBuilder += "\norder by ";
            Expression2SqlProvider.OrderBy(expression.Body, this._sqlBuilder);
            return(this);
        }
Exemplo n.º 3
0
 protected override SqlBuilder OrderBy(UnaryExpression expression, SqlBuilder sqlBuilder)
 {
     Expression2SqlProvider.OrderBy(expression.Operand, sqlBuilder);
     return(sqlBuilder);
 }
Exemplo n.º 4
0
 protected override SqlBuilder OrderBy(ParameterExpression expression, SqlBuilder sqlBuilder)
 {
     Expression2SqlProvider.OrderBy(expression, sqlBuilder);
     return(sqlBuilder);
 }