Have you read about command query separation? (ddd or alt.net lists) It sounds like exactly what you want. On 3/19/09, Humberto Marchezi <[email protected]> wrote: > Hi all, > > We worked with layered architecture: > - UI Layer > - Service Layer > - Domain Layer > - Persistence Layer > > A layer can only access its immediately inferior layer. > Thus service layer can not access persistence layer directly. > > The problem is that our DTOs classes are associated to the service layer. > However due to performance issues, we have being thinking of using DTOs > directly in the persistence layer. > By doing this, we expect Linq-to-NHibernate to directly generate a list of > DTOs in a optimized way. > > Is it a good practice ? > How to you handle this problem ? > > thanks > > > -- > Humberto C Marchezi > --------------------------------------------------------- > Master in Electrical Engineering - Automation > Software Consultant and Developer > at the Town Hall of Vitória > > > >
-- It is the mark of an educated mind to be able to entertain a thought without accepting it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
