when using Automapper, Should I flatten/map my internal objetcs of the View Model also ?

Posted by Mahesh Velaga on Stack Overflow See other posts from Stack Overflow or by Mahesh Velaga
Published on 2010-04-27T19:13:15Z Indexed on 2010/04/27 19:23 UTC
Read the original article Hit count: 178

Hi all,

I am using AutoMapper in my project along with, NHibernate and ASP.NET MVC 2.

As the title states, if I have a list of DTOs or a DTO inside the parent DTO that I am mapping to the View Model, should I flatten out the inner DTOs as well ?

Thanks

© Stack Overflow or respective owner

Related posts about automapper

Related posts about nhibernate