Ah. The reason I'm doing this is to prevent lots of database queries
and improve performance, so I'm not sure that helps me...

On Oct 2, 2:49 pm, "Fabio Maulo" <[EMAIL PROTECTED]> wrote:
> For a reusable solution you must use reflection
> and NHibernate.NHibernateUtil.Initialize(object) for each property of your
> graph.If it is for a DTO is better to create an appropriate DTO class and
> initialize the instance as needed.
>
> 2008/10/2 alunharford <[EMAIL PROTECTED]>
>
>
>
>
>
> > Generally I want to lazy load, but I want to eager load everything for
> > a single query if the client tells me to do that.
>
> > Alun Harford
>
> > On Oct 2, 1:50 pm, "Fabio Maulo" <[EMAIL PROTECTED]> wrote:
> > > Always or for a specific use-case ?
>
> > > 2008/10/2 alunharford <[EMAIL PROTECTED]>
> > > > Hello all,
>
> > > > In my application I am normally in a position to explicitly state
> > > > collections that I want eager loaded, so all all my collections are
> > > > configured to be lazy loaded. I then use SetFetchMode when I want a
> > > > collection to be eager loaded.
>
> > > > However, I have now come into a situation where I want to eager load
> > > > complete object graph(s).
>
> > > > Is there a way I can set fetchmode to join 'globally' on a
> > > > DetachedCriteria instance?
>
> > > > Many thanks for any help,
>
> > > > Alun Harford
>
> > > --
> > > Fabio Maulo
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to