Why do you need a proxy always?Do you use a custom proxy factory?

2009/9/23 Harm Neervens <[email protected]>

>
> Hello,
>
> I'm quit new to NHibernate and have the next question.
> When I call Session.Load<Customer>(custID), a proxy is created from my
> class. That's exactly what I want.
> However, when I call customer.Orders, the objects in the list are no
> proxies, but just plain customer objects.
> The same behaviour occurs when I instantiate a new customer object.
> Is there a reason for that behaviour. The ORM that I used so far
> creates always proxies for me.
> When I have no proxy, I cannot cast my object to IInterceptor and so I
> will never get to my session/context object within my entity.
>
> Best regards,
> Harm Neervens
>
> >
>

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