Esempio n. 1
0
 public SQLPaginator(PaginationSettings settings, DataContext context, string sqlItemsQuery, string sqlCountQuery, Func <IEnumerable <T>, IEnumerable <T> > inMemoryFilter = null)
     : base(settings)
 {
     _sqlQuery      = sqlItemsQuery;
     _sqlCountQuery = sqlCountQuery;
     _context       = context;
     _filter        = inMemoryFilter;
 }
Esempio n. 2
0
 public Paginator(PaginationSettings settings, IEnumerable <T> collection)
 {
     if (collection == null)
     {
         throw new ArgumentNullException();
     }
     if (settings == null)
     {
         settings = new PaginationSettings();
     }
     _settings   = settings;
     _collection = collection;
 }
Esempio n. 3
0
 protected Paginator(PaginationSettings settings)
 {
     _collection = null;
     _settings   = settings;
 }