-
Notifications
You must be signed in to change notification settings - Fork 557
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
Why Envelope return Domain object? #36
Comments
Says whom? One of the goals of Feature orientation is to reduce needless layers of abstraction. Validation for web and db occurs via MediatR pipelining |
@adamhathcock hi, there may be circular properties and also properties that I do not want to return. |
If you need to make a DTO then do it. Only do what you need to. Be agile. Don’t make layers for no reason. Using a serialization attribute doesn’t mess up a domain. |
@adamhathcock How to leverage DTO-approach with MediatR, AutoMapper and FluentValidation? Could you kindly provide a sample or point into appropriate direction? |
Why Envelope return Domain object?
Is bad practices
The text was updated successfully, but these errors were encountered: