public void ApplyPagerForQuery(SelectQuery <T> aQuery, DBCommand <T> aCommand) { Command.DBPager _pager = aCommand.Pager; int _min = (_pager.PageNumber - 1) * _pager.RowCount; int _max = _min + 1 + _pager.RowCount; aQuery.SetMaximum(_max).SetMinimum(_min); }
public DBCommandImpl(DBPager aPager, List <DBSort <T> > aSorts, List <DBFilterBase <T> > aFilters) { Pager = aPager; Sorts = aSorts; Filters = aFilters; }
public DBCommandResultImpl(List <T> aResults, int aTotalCount, DBPager aPager) { Results = aResults; TotalCount = aTotalCount; Pager = aPager; }