.NET EFCore | Web API Entity Framework Core (EF7) Pagination using Skip and Take methods

Опубликовано: 02 Февраль 2023
на канале: Netcode-Hub
473
9

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*/ ️


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 |

Related Videos
| Entity FrameworkCore CRUD Operations using SQL Server Database
| Scaffold SQL Database with DB First migration in Web API using EntityFrameworkCore.
| Web API EntityFrameworkCore (EF7) Pagination using Skip() and Take() methods.
| Send Email in Web API using Mailkit SMTP.
| AutoMapper Data Transfer Objects DTO with Web API Explained.
| Blazor WebAssembly Chat with SignalR using WebSockets.
| Create JSON Web Token (JWT) for User Registration and Login using Password Hash and Salt.
| EFCore All Relationships (11, 1n, nn ) with Entity Framework Core SQL Server.
| 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.


Смотрите видео .NET EFCore | Web API Entity Framework Core (EF7) Pagination using Skip and Take methods онлайн без регистрации, длительностью 22 минут 15 секунд в хорошем hd качестве. Это видео добавил пользователь Netcode-Hub 02 Февраль 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 473 раз и оно понравилось 9 людям.