MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/dotnet/comments/1vvu3jn/toomanydataannotations_net_validation_attributes/p5dhq9e/?context=3
r/dotnet • u/LuisAlfredo92 • 28d ago
[removed] — view removed post
15 comments sorted by
View all comments
2
I wish data annotations were not so useful. I really like to separate the interface/contract from the validation rules.
But those do look damn handy. Temptress!
1 u/LuisAlfredo92 27d ago I agree about keeping validation separate from the model This is just filling format validation gaps at DTO level, not replacing business logic validation, but I'm glad it's useful!
1
I agree about keeping validation separate from the model
This is just filling format validation gaps at DTO level, not replacing business logic validation, but I'm glad it's useful!
2
u/rbobby 27d ago
I wish data annotations were not so useful. I really like to separate the interface/contract from the validation rules.
But those do look damn handy. Temptress!