public Query OrderBy(bool descending, params string[] orderByExprs) { foreach (var item in orderByExprs) { OrderByExprs.Add(new OrderBy(descending, item)); } return(this); }
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()); }
public Query OrderBy(params OrderBy[] orderByExprs) { OrderByExprs.AddRange(orderByExprs); return(this); }