Select from following answers:- return query.Skip((pageNumber - 1) * 25).Take(25);

- return query.Take((pageNumber - 1) * 25).Skip(25);
- return query.Take((25).Skip(pageNumber - 1));
- All Above
The correct query skips a multiple of the page number and 25 (the page size) and then takes 25 entities. This query will retrieve only those results needed from the database for the given page number.
Skipping the first 25 and taking a multiple of the page number will return a result of varying length that always begins with the 26th element. This is incorrect.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator