コード例 #1
0
 protected override SqlBuilder OrderBy(NewExpression expression, SqlBuilder sqlBuilder)
 {
     foreach (Expression item in expression.Arguments)
     {
         SqlProvider.OrderBy(item, sqlBuilder);
     }
     return(sqlBuilder);
 }
コード例 #2
0
        public SqlQueryable <T> OrderBy(Expression <Func <T, object> > expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression", "Value cannot be null");
            }

            this._sqlBuilder.SqlOrderStr += " order by ";
            SqlProvider.OrderBy(expression.Body, this._sqlBuilder);
            return(this);
        }
コード例 #3
0
 protected override SqlBuilder OrderBy(ParameterExpression expression, SqlBuilder sqlBuilder)
 {
     SqlProvider.OrderBy(expression, sqlBuilder);
     return(sqlBuilder);
 }
コード例 #4
0
 protected override SqlBuilder OrderBy(UnaryExpression expression, SqlBuilder sqlBuilder)
 {
     SqlProvider.OrderBy(expression.Operand, sqlBuilder);
     return(sqlBuilder);
 }