More than a custom-proxy-factory-factory y should use a custom
implementation of ObjectFactory.José, please, send to Harm the links where
he can see how have always a proxy, create proxy outside NH scope and how
use those proxy in Save, Update and Delete (in practice the links to the WPF
example in uNhAddIns and to your posts).


2009/9/23 José F. Romaniello <[email protected]>

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


-- 
Fabio Maulo

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