I've found several threads here and elsewhere concerning this issue,
so I know I'm not the only one who've run into it. Still, there are a
few things I don't fully understand, so I'll ask them here.

I am using nHibernate in a multitiered environment. I'm using WCF to
serialize the POCO objects I'm creating with nHibernate. This fails as
WCF apparently tries to make nHibernate lazy load data after the
session has closed.

I've tried to set lazy and outer-join like so:
<many-to-one name="DeliveryAddress" column="ACT_DELIV_ADR"
class="DeliveryAddress" outer-join="true" lazy="false"/>

However, this seems to make nHibernate make several calls to load the
data, which is extremely slow.

My question is: How can I completely disable lazy loading and proxy
objects? And how can I load this eagerly in one call rather than the
ineffective solution I have now?

We will manually handle loading, and we need type sharing between the
client and the the server as well as behavior in the model classes.

--~--~---------~--~----~------------~-------~--~----~
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