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; }
public Paginator(PaginationSettings settings, IEnumerable <T> collection) { if (collection == null) { throw new ArgumentNullException(); } if (settings == null) { settings = new PaginationSettings(); } _settings = settings; _collection = collection; }
protected Paginator(PaginationSettings settings) { _collection = null; _settings = settings; }