コード例 #1
0
        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);
        }
コード例 #2
0
 protected override SqlGenerate OrderBy(UnaryExpression expression, SqlGenerate sqlGenerate)
 {
     SqlExpressionProvider.OrderBy(expression.Operand, sqlGenerate);
     return(sqlGenerate);
 }
コード例 #3
0
 protected override SqlGenerate OrderBy(LambdaExpression expression, SqlGenerate sqlGenerate)
 {
     SqlExpressionProvider.OrderBy(expression.Body, sqlGenerate);
     return(sqlGenerate);
 }