asp.net MVC 2 - View Model / Model Validation - Is there a way to map validation attributes from mod
- by Paul Hinett
A short while ago I'm sure I read that is was possible to use AutoMapper to map the validation attributes from the domain model to the view model, i can't find that post any more though!
Has anybody seen any code or know if it would be possible to do this? This would give the added benefit of not repeating validation in both ViewModel + Models.
Paul