Transfer validation attributes to the viewmodel?

1.059 lượt xem
Chuyển tới thư đầu tiên chưa đọc

Carl Hörberg

chưa đọc,
05:57:37 28 thg 1, 201028/1/10
đến 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

chưa đọc,
18:50:31 28 thg 1, 201028/1/10
đến 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

chưa đọc,
02:00:10 29 thg 1, 201029/1/10
đến 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 :)

Trả lời tất cả
Trả lời tác giả
Chuyển tiếp
0 tin nhắn mới