Monday, September 12, 2011

Painful lessons learned regarding PagedList

  1. It seems that one may not cast an IQueryable to an IEnumerable and then turn around and cast the IEnumerable to a PagedList. The IQueryable needs to reach directly to the PagedList before the trip to the database.
  2. .ToPagedList(0, 99999999); should allow you to see everything
  3. .ToPagedList(1, 99999999); should be empty

No comments:

Post a Comment