Are NHibernate lists loaded on demand?

Posted by André Pena on Stack Overflow See other posts from Stack Overflow or by André Pena
Published on 2010-03-19T09:33:09Z Indexed on 2010/03/19 10:01 UTC
Read the original article Hit count: 213

Filed under:

This is a pretty simple question. When I do this:

session.CreateCriteria(typeof(Product)).List();

The resulting list will load as I access it? Let's say, from 100 to 100 elements for example? Or will it load all once?

In the case it's not "virtual" how can I make it so? What's the best pratice about it?

Thanks;

© Stack Overflow or respective owner

Related posts about nhibernate