Monday, 26 August 2024

Dotnet core

 Pagination: Use `Skip` and `Take` for efficient pagination.

var pagedOrders = await _context.Orders
.Skip((pageNumber - 1) * pageSize)
.Take(pageSize)
.ToListAsync();

No comments:

Post a Comment

7 Common mistakes in Dot Net — You can avoid

  There are many common mistakes made during .NET (ASP.NET, .NET Core) development, which affect performance, security, and code… Code Crack...