How to disable automatic loading in NHibernate?
Posted
by Drevak
on Stack Overflow
See other posts from Stack Overflow
or by Drevak
Published on 2009-06-05T21:14:03Z
Indexed on
2010/06/07
2:12 UTC
Read the original article
Hit count: 326
nhibernate
|fluent-nhibernate
This question might be a duplicate of this one:
I'd like to know if there is any way to tell nhibernate to do not load a child collections (best if it's with fluent Nhibernate) unless i do it manually with a query (keeping all the mappings!).
The problem is that even turning off lazy loading the collections get eager-loaded automatically. I'd like that no collections are loaded unless I specify a fetchmode in my query.
© Stack Overflow or respective owner