I have the problem that I would like to turn off lazy loading at all
for certain queries. Most of our data is requested by the client
(WCF), and needs to be complete.

I know a can turn of lazy loading in the query. But to do this, I have
to declare all the references an entity has. Many objects are simply
loaded using "Get(id)" or by a general, simple criteria which filters
by a business id. Turning off lazy loading for all referenced object
would result in much more queries which will be complicated and hard
to maintain.

So I turned it off in the mapping files. Now it's hard to get lazy
loading back. I need something like "session.Lazy(false)" or
"query.Lazy(false)" or something. If something like this would exist
somewhere, I didn't find it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to