I have an application with a repository layer (and a nhibernate implementation), service (bussiness) layer, and an asp.net mvc in the web layer.
Because I also need to create a small silverlight application I will create several wcf services. This calls to use DTO s, but I don t know how & where to create them.
I ve seen some links (like this one), so it seems that the natural place for the dto s and the mapping procedure is somewhere in my data/repository layer?
But on the other hand when I look at the Fowlers DTO pattern it seems that the mapping is done with the assembler somewhere in the domain layer?
I am confused... What is the best practice to achieve this?
Many thanks!