Beispiel #1
0
 /// <summary>
 /// 排序
 /// </summary>
 /// <typeparam name="TResult"></typeparam>
 /// <param name="expression"></param>
 /// <param name="desc"></param>
 /// <returns></returns>
 public GroupQuery <T> OrderBy <TResult>(Expression <Func <T, TResult> > expression, bool desc = true)
 {
     BaseQuery.__OrderBy(expression.Parameters, expression.Body, desc);
     return(this);
 }
Beispiel #2
0
 /// <summary>
 /// 按TJoin排序
 /// </summary>
 /// <param name="expression"></param>
 /// <param name="desc"></param>
 /// <returns></returns>
 public LambdaQueryJoin <T, T2> OrderBy <TResult>(Expression <Func <T, T2, TResult> > expression, bool desc = true)
 {
     BaseQuery.__OrderBy(expression.Parameters, expression.Body, desc);
     return(this);
 }