On .NET Pattern Framework 4.5 where are the DTOs?
In previous versions of the dofactory I saw some DTOs (Data Transformation Objects), now when I looked for them in v45 I could not find them any where
Where DTOs removed from v45? and if yes why?
Angel Valdes, Jan 17, 2014
The purpose of DTOs (Data Transfer Objects) is to transfer data. Essentially these are objects without behavior (methods).
DTOs are alive and well in vsn 4.5. If you explore the MVC application, all the ViewModel objects are DTOs. The difference is that they don't have the DTO name extension.
Copying data back and forth between Domain objects and DTOs can become repetitive and cumbersome. In release 4.5 we don't do it manually, but instead use AutoMapper which is a wonderful open source tool whose purpose it is to map objects from one to another. In their website (automapper.org) they describe it as a 'convention based object-object mapper'. Check it out.
Jack Poorte, Jan 20, 2014