- I would like to separate my attribute decoration(3-4 per field) by having them someplace else so that my code looks readable.
- Also the arguments passed to some attributes should come from a resource file.
EG:[Required("Cannot proceed without entering *field_Name*")]
I need just[Required]
Possible duplicate of this question(on which i couldn’t resist offering a bounty) : Default resource for data annotations.
For the first question, maybe you could try using Fluent Validation. You can hook it up to MVC by following these instructions.
For the second question, I’ve posted an answer here: Default resource for data annotations in ASP.NET MVC