Exemplo n.º 1
0
Arquivo: T2.cs Projeto: zyj0021/CRL5
 /// <summary>
 /// 按关联对象设置GROUP字段
 /// 可多次调用,不要重复
 /// </summary>
 /// <param name="resultSelector"></param>
 /// <returns></returns>
 public LambdaQueryJoin <T, T2> GroupBy <TResult>(Expression <Func <T, T2, TResult> > resultSelector)
 {
     //在关联两次以上,可调用以下方法指定关联对象获取对应的字段
     BaseQuery.__GroupBy(resultSelector.Parameters, resultSelector.Body);
     return(this);
 }