The result of access to each needed property/relation is the same than
disable lazy-loading (same amount of queries) when the graph is not so
deeper... but..
To set no-lazy-loading for a session can be a short-cut as can be a
disaster.

On Fri, Nov 4, 2011 at 1:58 PM, Martino Bordin <[email protected]>wrote:

> Hello,
> I'm using Lazy Load with success but for some specific queries I don't
> need that.
>
> Is it possible to disable it for a particular query?
> I would like to do something like this:
>
> session.Query<Customer>().*NotLazyLoading()*.Where(x => x.CreationDate >=
>> DateTime.Now);
>>
>
>
> An alternative would be an overload of *sessionFactory.**OpenSession*()
> to disable lazyloading.
>
> This is because I don't know to write a lot of Fetch/ThenFetch (that, as
> far as i know, it's support only 2 level of eager loading).
>
> Thanks.
> Martino
>



-- 
Fabio Maulo

Reply via email to