views:

54

answers:

1

Can somebody tell me what lazy-loading policy NHibernate uses? Various sources provides contradictory information - this one says that NHibernate doesn't provide lazy-loading for properties, and NHibernate in Action read that lazy-fetching are on by default. Am I missing something?

+3  A: 

I am not an expert but I think that the book means lazy loading of collection properties. As for other properties nhibernate does support them but it might not be released yet: NHibernate new feature: Lazy Properties

Giorgi
and what about associations? from what I've learned, they are lazy-loaded by default?
chester89
Yes, they are loaded in lazy manner by default: http://nhforge.org/doc/nh/en/index.html#collections-mapping
Giorgi