protected override SqlGenerate OrderBy(NewExpression expression, SqlGenerate sqlGenerate) { foreach (Expression item in expression.Arguments) { SqlExpressionProvider.OrderBy(item, sqlGenerate); sqlGenerate += ","; } if (sqlGenerate[sqlGenerate.Length - 1] == ',') { sqlGenerate.Sql.Remove(sqlGenerate.Length - 1, 1); } return(sqlGenerate); }
protected override SqlGenerate OrderBy(UnaryExpression expression, SqlGenerate sqlGenerate) { SqlExpressionProvider.OrderBy(expression.Operand, sqlGenerate); return(sqlGenerate); }
protected override SqlGenerate OrderBy(LambdaExpression expression, SqlGenerate sqlGenerate) { SqlExpressionProvider.OrderBy(expression.Body, sqlGenerate); return(sqlGenerate); }