This project has moved and is read-only. For the latest updates, please go here.


Jan 19, 2013 at 4:27 PM

What would be the best way to implement Skip() and Take() so we can retrieve a paginated data instead Single() or All().

Jan 19, 2013 at 4:32 PM
Edited Jan 19, 2013 at 4:33 PM

Sorry, got it when I saw that All() is an IQueryble ... need to take a deeper look just to see if only the paging data is being retrieved but it's easy to simple append the skip and take.

public List GetAllSongs(int page, int pageSize)
    return songsRepo.All().Skip(pageSize * page).Take(pageSize).ToList();
May 12, 2013 at 1:39 AM
This is would more efficient if IRepository<T> : IQueryable<T>. Can we make that happen? Thanks.
May 13, 2013 at 8:03 AM
See Changeset 26210. I'd love to hear C&C.