Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move *Entity*Response to the Application/*Entity* folder #9

Open
bookuha opened this issue Sep 29, 2022 · 0 comments
Open

Move *Entity*Response to the Application/*Entity* folder #9

bookuha opened this issue Sep 29, 2022 · 0 comments
Labels
consider question Further information is requested

Comments

@bookuha
Copy link
Owner

bookuha commented Sep 29, 2022

For example we have a BookResponse (DTO) in Application.Shared, but It would be way more easier to locate it in the folder along with the classes that use it.
So, it can be moved to the Application/Books folder where it serves as a response for handlers.
But the problem is it references Infrasturcture for mappings methods, and Infrastructure must reference this DTO to make maps, therefore Circular Reference is produced.
The problem is solved by introducing 3rd party mappers.

@bookuha bookuha changed the title Move EntityResponse to the Application/Entity folder Move *Entity*Response to the Application/*Entity* folder Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consider question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant