In my projects, only one. I'm a DAO guy for several reasons. I don't know enough about DDD to be sure I'm doing it correctly. Without LINQ2NH, I'm not sold on the idea anyway. I don't want ReposiDAOs with a billion FindBy methods on my "collection." I don't want NH ICriteria flying all over my business logic and I'm too lazy to wrap my own ICriteria. In Ayende's "Repository is the new Singleton" post, it looks like NH ICriteria bleed all the way up to the business logic, but I haven't seen a full app from him, so I couldn't say for certain.
On Mon, Sep 7, 2009 at 12:07 PM, Fabio Maulo <[email protected]> wrote: > 2009/9/7 Jason Dentler <[email protected]> > >> Raw NH ICriteria query objects work for Ayende. It looks like a leak to >> me, but I'm new. > > > How many tiers should have a reference to NHibernate ? > > -- > Fabio Maulo > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
