C
C#10mo ago
sepp

❔ Question about Layered Structure

Guys do you think it is bad to expose Entities Layer both DAL and Services layer? And where should I store my DTOs? My layers are API, DAL, Entities, Services.
4 Replies
not guilty
not guilty10mo ago
wait, are DTOs now in API?
sepp
sepp10mo ago
I haven't wrote the DTOs yet, but I was thinking to place them under Services layer since I think it is bussines logic to map objects
not guilty
not guilty10mo ago
no, it's simple if those are models used by API to the extern world, then put them in API or in an abstraction layer inherited by API if those are models used by Services, then put them in abstraction layer that Services inherits think of it as every layer has its models there can be exceptions, obviously, but they are still exceptions
Accord
Accord10mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts