How to Craft Clean and Scalable.NET 8 APIs: Repository Pattern and DI Guide (Hands-On Tutorial)

preview_player
Показать описание


Contents
00:00 Why do we need a Repository Pattern?
01:00 Recap of the Starter API Application
01:50 More on the Repository Pattern
03:20 Creating a Repository Folder
03:34 Creating an IRepository
04:32 Implementing the Repository Interface
11:00 Adding the IRepository to the Dependency Injection container
12:00 Implenting the IRepository in the API Controller
14:11 Testing the API Endpoints with the Repository Pattern
14:51 Changing implementation of the Repository Pattern in the Dependency Injection Container
17:04 Call to Action
Рекомендации по теме
Комментарии
Автор

Thanks for explaining, but if we have tons of Repositories? do we have to register them all in Program.cs by this the lines of code in Program.cs will increase so much which is bad in terms of scalability

pakistaninsaudi
welcome to shbcf.ru