DataAnnotations ASP.NET MVC 2, , . , . , ; :
1: , ? , .., , . ; , , , . (, , , , , ).
2: (, )? .
At the end of the day, you should strive to keep your code clean and disclose intentions as much as possible, and carefully check the results. I have not yet seen any validation based on a model that really fully protects the integrity of your data in 100% of cases. Even if the user does not break your model, another developer will eventually be.
source
share