Thanks so much for watching 🙌🏾 LIKE 👍, SUBSCRIBE & turn on Notifications 🔔 to know when I upload new videos EVERYDAY!
/*You can buy a coffee for me*/ ☕️
https://www.buymeacoffee.com/NetcodeHub
Table of Contents:
00:00:00 | Introduction and creating new Web API Project in Visual Studio using .NET 7 framework.
00:01:29 | Installing EFCore, EFCore.SqlServer, EFCore.Tools Nuget packages.
00:02:11 | Creating database connection.
00:02:10 | Creating model and establish relationship.
00:06:52 | Creating Employee model.
00:08:54 | Creating Employee Controller.
Download Source code | https://github.com/Netcode-Hub/Web-API-EntityFrameworkCore-EF7-Pagination-using-Skip-and-Take-methods .
Related Videos
/watch/A9et57fmAOImt | Entity FrameworkCore CRUD Operations using SQL Server Database
/watch/srBjunSp7iqpj | Scaffold SQL Database with DB First migration in Web API using EntityFrameworkCore.
/watch/M0NxdPZHQ2GHx | Web API EntityFrameworkCore (EF7) Pagination using Skip() and Take() methods.
/watch/kNVxFPDufWGux | Send Email in Web API using Mailkit SMTP.
/watch/w-Clt0hTBm7Tl | AutoMapper Data Transfer Objects DTO with Web API Explained.
/watch/ICqFPhZnPasnF | Blazor WebAssembly Chat with SignalR using WebSockets.
/watch/0w3E_C4JE2xJE | Create JSON Web Token (JWT) for User Registration and Login using Password Hash and Salt.
/watch/8HLiYMS7IwV7i | EFCore All Relationships (11, 1n, nn ) with Entity Framework Core SQL Server.
/watch/oL0M6cteHEReM | Web API Role - Based Authorization with JSON Web Token (JWT).
# What is Pagination? #
Pagination refers to retrieving results in pages, rather than all at once; this is typically done for large result sets, where a user interface is shown that allows the user to navigate to the next or previous page of the results.
Take() method
The Take() method extracts the first n elements (where n is a parameter to the method) from the beginning of the target sequence and returns a new sequence containing only the elements taken.
Skip() method
The Skip() method can be thought of as the exact opposite of the Take() method. Where the Take() method, returns a sequence containing the first n elements of the target sequence, the Skip() method "skips" over the first n elements in the sequence and returns a new sequence containing the remaining elements after the first n elements.