asp.net MVC 2 - View Model / Model Validation - Is there a way to map validation attributes from mod
Posted
by Paul Hinett
on Stack Overflow
See other posts from Stack Overflow
or by Paul Hinett
Published on 2010-05-26T21:06:46Z
Indexed on
2010/05/26
21:21 UTC
Read the original article
Hit count: 484
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
© Stack Overflow or respective owner