AutoMapper

 Mapper.CreateMap<userEntity, userViewModel>();
 var userVm = new userViewModel();
 userVm = Mapper.Map<userViewModel>(user);
Github AutoMapper / AutoMapper
https://github.com/AutoMapper/AutoMapper
Using AutoMapper in Your ASP.Net MVC Applications
http://www.codeguru.com/columns/experts/using-automapper-in-your-asp.net-mvc-applications.htm
View Model pattern and AutoMapper in ASP.NET MVC Applications
http://weblogs.asp.net/shijuvarghese/archive/2010/02/01/view-model-pattern-and-automapper-in-asp-net-mvc-applications.aspx
ASP.NET MVC - Mapping with Automapper
http://stackoverflow.com/questions/4608274/asp-net-mvc-mapping-with-automapper

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2014-02-07 (金) 00:24:50