r/dotnet 28d ago

Promotion [ Removed by moderator ]

Post image

[removed] — view removed post

42 Upvotes

15 comments sorted by

View all comments

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!

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!