Tried it - surprisingly lazy loading worked without problems!
Like you said it is a mirage :-)
Think the SqlDataReader is wrapped in a Driver.NDataReader which loads
everything into an internal list!
So ultimately even calling Enumerable loads everything in memory - no
way to stream results currently in NH :-(
Thanks
Ajai
On Dec 13, 10:25 am, Fabio Maulo <
fabioma...@gmail.com> wrote:
> Yes it is but not for that line...
> we are truly wrapping the datareader inside the QueryLoader, btw I never
> have tested it to check the behaviour initializing some lazyloading
> relationship.
> If you have time please try it.
> Thanks.
>
> 2009/12/13 ajaishankar <
ajai.shan...@gmail.com>
>
>
>
> > Pulling this in reflector:
>
> > SessionImpl.Enumeration()
> > HQLQueryPlan.DoIterate
> > NHibernate.Hql.Classic.QueryTranslator.GetEnumerable()
>
> > What is currently returned is a true enumerable :-)
>
> > If I wanted to request this feature (enumeration for criteria & sql
> > query) which group would I need to post to?
>
> > The scenario I have where this would be super useful is:
>
> >
http://groups.google.com/group/nhusers/browse_thread/thread/8ba75a088...
> > <
nhusers%2Bunsu...@googlegroups.com<
nhusers%252Buns...@googlegroups.com>