You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can my Infrastructure project reference my Domain project or should it reference my Application (UseCases) project?
Should factories be inside the domain (ICustomerFactory) or should it be part of Application?
The text was updated successfully, but these errors were encountered:
Hi @SViradiya-MarutiTech and thanks for your comment.
All my entities are abstract and implement interfaces. What is an interface besides an abstraction?
I'm not sure if factories and repositories contracts should be on Domain or not, but I'm using it on Domain since I started separating my Application project by contexts.
I don't have an Application project with all my UseCases, but I have 1 application project for Admin WebSite with all the use cases for Admin usage. I have another application project for Customer WebSite with all the use cases for customer's usage. Each application has your use cases and services, DI and IoC but both use the same repositories and factories, so, I share them putting my contracts on Domain project (since my entities are equals in both contexts, Admin and Customers APIs).
Again, it's all my opinions and I'm not sure if it's right.
Hey @ivanpaulovich,
Following this image here:
https://github.com/ivanpaulovich/clean-architecture-manga/wiki/Separation-of-Concerns#separation-of-concerns
Can my Infrastructure project reference my Domain project or should it reference my Application (UseCases) project?
Should factories be inside the domain (ICustomerFactory) or should it be part of Application?
The text was updated successfully, but these errors were encountered: