My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 4: GenericRepository, Get method: bad pageIndex calculation
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by maxime.c...@gmail.com, Jun 18, 2012
In the GenericRepository.cs implementation in Infrastructure.Data.EntityFramework project, the second Get method l.94 has a typo error. It's missing the '-1' calculation on pageIndex.

L.94 should be:
return GetQuery<TEntity>(criteria).OrderBy(orderBy).Skip((pageIndex - 1) * pageSize).Take(pageSize).AsEnumerable();

Powered by Google Project Hosting