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
2010-03-28 19:12:09
and what about associations? from what I've learned, they are lazy-loaded by default?
chester89
2010-03-28 19:20:32
Yes, they are loaded in lazy manner by default: http://nhforge.org/doc/nh/en/index.html#collections-mapping
Giorgi
2010-03-28 19:32:37