示例#1
0
        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);
        }
示例#2
0
 public DBCommandImpl(DBPager aPager, List <DBSort <T> > aSorts, List <DBFilterBase <T> > aFilters)
 {
     Pager   = aPager;
     Sorts   = aSorts;
     Filters = aFilters;
 }
示例#3
0
 public DBCommandResultImpl(List <T> aResults, int aTotalCount, DBPager aPager)
 {
     Results    = aResults;
     TotalCount = aTotalCount;
     Pager      = aPager;
 }