protected internal QueryContent(QueryContent <T> content) { if (content != null) { _where = content._where; _order = content._order; _range = content._range; _ctx = content._ctx; } }
private static IRangeable <T> AddOrderBy(QueryContent <T> me, Expression <Func <T, object> > expr, bool isAsc) { string n = expr.GetColumnName(); if (me._order == null) { me._order = new OrderBy(); } me._order.OrderItems.Add(isAsc ? new ASC(n) : new DESC(n)); return(me); }