entity framework 4 - MVC mapping viewmodels to POCOs -


i developing asp.net mvc 3 application using ef 4 , pocos. 1 of main challenges have how map viewmodel poco.

for example:

i have 2 poco object -> user , order. furthemore have viewmodel --> userordermodel containing both models. whenever data posted map userordermodel user , order object. pretty straightforward (perhaps map on request in controller) wondering if there nice, clean solution problem (i thinking of creating generic mapping interace view models must define how map poco object)

thanks in advance

sounds job automapper

great example here on mapping mvc viewmodel's poco's.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -