Transfer validation attributes to the viewmodel?

1,052 views
Skip to first unread message

Carl Hörberg

unread,
Jan 28, 2010, 5:57:37 AM1/28/10
to AutoMapper-users
I'm annoyed that i have to duplicate all my validation attributes on
both the persistence objects and the viewmodel objects to get both
client and server side validation. Is there any solution to this?

Jimmy Bogard

unread,
Jan 28, 2010, 6:50:31 PM1/28/10
to automapper-users
Check out this thread:

http://groups.google.com/group/automapper-users/browse_thread/thread/4e5692f67c0b9376/c8096c0fb5c0b71a?hl=en&#c8096c0fb5c0b71a


--
You received this message because you are subscribed to the Google Groups "AutoMapper-users" group.
To post to this group, send email to automapp...@googlegroups.com.
To unsubscribe from this group, send email to automapper-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/automapper-users?hl=en.


Martin Aatmaa

unread,
Jan 29, 2010, 2:00:10 AM1/29/10
to AutoMapper-users
I'm glad this was brought up.

I asked this on SO a while back:

http://stackoverflow.com/questions/2075288/mapping-validation-attributes-from-domain-entity-to-dto

My next step was to ask AutoMapper :)

Reply all
Reply to author
Forward
0 new messages