DEV Community

Discussion on: Pagination in an API: page number vs start index

Collapse
 
joaofbantunes profile image
João Antunes

Yes, on the output side the total item count is really important (unless we're working with an "infinite" scrolling list probably).

When implementing in .NET and using for example EF, the easiest is going with start index and item count, as it maps directly to Skip() and Take(), but it could not be the easiest for the client.

Collapse
 
rafalpienkowski profile image
Rafal Pienkowski

In .NET there is the Nuget package which translates the OData query to the LINQ expression 😊

Thread Thread
 
joaofbantunes profile image
João Antunes

Never really used OData that much, but that's useful 😉