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

Показать описание
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.
Related Videos
# 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.
/*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.
Related Videos
# 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.