|
|
|
|
|
by hudo
3058 days ago
|
|
If you don't have to map to DTO, or domain == dto, then its probably an overkill. But what if you expose domain model to the view, and view changes some property? Are you 100% it will not be saved to db? If you change one field in a db, do you have to change domain model and UI also? Important concept is Persistence Ignorance, and how "far" are you willing to go with decoupling application layer from database and domain model. It really depends on your app, and there's no "one correct way of doing this". |
|