Example #1
0
 /// <summary>
 /// 联合查询
 /// 会清除父查询的排序
 /// </summary>
 /// <typeparam name="TResult2"></typeparam>
 /// <param name="resultSelect"></param>
 /// <param name="unionType"></param>
 /// <returns></returns>
 public LambdaQueryResultSelect <TResult> Union <TResult2>(LambdaQueryResultSelect <TResult2> resultSelect, UnionType unionType = UnionType.UnionAll)
 {
     BaseQuery.__QueryOrderBy = "";//清除OrderBy
     BaseQuery.AddUnion(resultSelect.BaseQuery, unionType);
     return(this);
 }