Yeah, that may be an solution, thanks :)

On Aug 12, 11:08 am, "Frans Bouma" <[email protected]> wrote:
> > Hmm, well I want it to work the other way around I want to tell it when
> not
> > to fetch at all is that possible?
>
>         I *think* you should set the fetch strategy to 'select', and switch
> lazy loading off for those navigators. Then, when you NEED it to be eager
> loaded, you should specify 'Fetch()'. So it doesn't get eager loaded by
> default, and you specify it explicitly when you need it. Caveat: serious
> problem with select N+1 
> (see:http://ayende.com/Blog/archive/2010/08/04/nhibernate-is-lazy-just-liv...
> it.aspx )
>
>         So in short: switch off lazy loading and beware that you then have
> to eager load when you use the related elements.
>
>                 FB
>
>
>
> > On Aug 12, 9:37 am, "Frans Bouma" <[email protected]> wrote:
> > > Wasn't the .Fetch() extension method meant for that? (v3)
>
> > >         FB
>
> > > > Well my main goal is to be able to use Linq, but tell linq that want
> > > > to
> > > load
> > > > all of the properties or all properties but the lists.
> > > > I think this is possible with Criteria but I havent seen any
> > > > solution for linq.
> > > > I think kind of like LoadOptions for Linq to sql.
>
> > > > On Aug 11, 2:30 pm, Fabio Maulo <[email protected]> wrote:
> > > > > What do you mean exactly ?
> > > > > with entity-name you can work with neither classes nor interfaces;
> > > > > LINQ is strongly typed.
>
> > > > > On Wed, Aug 11, 2010 at 8:32 AM, Niclas Pehrsson
> > > > > <[email protected]>
> > > > wrote:
> > > > > > Is it possible to use Entity-name with NHibernate  Linq provider
> > > > > > in the 3.x versions?
>
> > > > > > --
> > > > > > 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]<nhusers%2bunsubscr...@googl
> > > > > > nhusers+egro
> > > > > > nhusers+ups.com>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/nhusers?hl=en.
>
> > > > > --
> > > > > 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.
>
> > --
> > 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.

-- 
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