Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 509 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 509 Bytes

Easy Pagination for Entity Framework in 3 steps

Pagination is the process of dividing a set into discrete pages. In the context of Entity Framework, that means we are only getting a certain amount of entries from the database.

And we will implement a very easy solution to make that happen in 3 steps. The result will look like this:

var pagedList = DbContext.BlogPosts.ToPagedList(page: 1, pageSize: 5);

Found here