| Issue 4: | GenericRepository, Get method: bad pageIndex calculation | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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(); |