Ejemplo n.º 1
0
 public Query OrderBy(bool descending, params string[] orderByExprs)
 {
     foreach (var item in orderByExprs)
     {
         OrderByExprs.Add(new OrderBy(descending, item));
     }
     return(this);
 }
Ejemplo n.º 2
0
 public bool IsTrivial()
 {
     return((WhereExpr == null || WhereExpr.Type == ExprType.EMPTY) &&
            (GroupWhereExpr == null || GroupWhereExpr.Type == ExprType.EMPTY) &&
            !Columns.Any() &&
            !OrderByExprs.Any() &&
            !Joins.Any() &&
            RowsLimit == null &&
            RowsOffset == 0 &&
            !DistinctRecords &&
            !GroupByColumns.Any());
 }
Ejemplo n.º 3
0
 public Query OrderBy(params OrderBy[] orderByExprs)
 {
     OrderByExprs.AddRange(orderByExprs);
     return(this);
 }