jasontaylordev / NorthwindTraders

Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.
MIT License
5k stars 1.59k forks source link

Repository pattern and IoC #55

Closed raminassar closed 5 years ago

raminassar commented 5 years ago

I'd rather to continue using repository and IoC pattern in my projects but I liked the structure of the solution. Can anyone share how they can add those two principles in this project structure and remove the dependency between persistence and presentation layer?

ardalis commented 5 years ago

See https://github.com/dotnet-architecture/eShopOnWeb (full sample; Microsoft reference project with eBook) and https://github.com/ardalis/CleanArchitecture (solution template suitable to use as a solution starting point)

jasontaylordev commented 5 years ago

Thanks @ardalis, both great resources. @raminassar you should also have a read through https://deviq.com/repository-pattern/ and https://deviq.com/specification-pattern/.

raminassar commented 5 years ago

@ardalis @JasonGT Thank you guys