Back to list
Views:   0
Replies:  0
Archived
,
Reply 1
Angel:

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
Jack Poorte, Jan 20, 2014
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas