☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic
There's a lot of debate about where you should define repositories in a domain-centric architecture like Clean Architecture. Do you place the repository interfaces in the domain layer? Or do you move the repository to the application layer? Here's my take on this.
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech
Read my Blog here:
https://www.milanjovanovic.tech/blog
Subscribe for more:
https://www.youtube.com/@MilanJovanovicTech
Chapters
0:00 Starting with EF Core
0:48 Defining repositories in the Domain layer
3:39 Replacing EF Core with repositories
4:45 Where do we place the Unit of work?
5:50 Removing the EF Core dependency
9:45 Implementing the repositories
12:53 Wiring up dependency injection
13:46 Testing the repositories flow