Clean Architecture
I'm trying to implement Clean Architecture in my web api, I'm also using the generic repository and unit of work pattern. I want to set my unit of work up as a singleton, but my Program.cs exists in my 'Presentation' (web) layer. This means it wants a reference to my Infrastructure layer (where my unit of work lives) which breaks clean architecture.
Can I and should I move Program.cs to a different layer? Any Suggestions
Can I and should I move Program.cs to a different layer? Any Suggestions
