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();
(Skip, Take)
var page2 = context.Products
.OrderBy(p => p.Id)
.Skip(10) // Skip first 10
.Take(10) // Take next 10
.ToList();