Example #1
0
 protected override SqlPack OrderBy(NewExpression expression, SqlPack sqlPack)
 {
     foreach (Expression item in expression.Arguments)
     {
         Expression2SqlProvider.OrderBy(item, sqlPack);
     }
     return(sqlPack);
 }
Example #2
0
 protected override SqlPack OrderBy(UnaryExpression expression, SqlPack sqlPack)
 {
     Expression2SqlProvider.OrderBy(expression.Operand, sqlPack);
     return(sqlPack);
 }
Example #3
0
 public Expression2SqlCore <T> OrderBy(Expression <Func <T, object> > expression)
 {
     this._sqlPack += "\norder by ";
     Expression2SqlProvider.OrderBy(expression.Body, this._sqlPack);
     return(this);
 }