Mid EF Core

What about pagination?

(Skip, Take)

  • Use .Skip() and .Take() for pagination:

var page2 = context.Products

.OrderBy(p => p.Id)

.Skip(10) // Skip first 10

.Take(10) // Take next 10

.ToList();

More from Entity Framework Core Tutorial

All questions for this course