Ok, sorry Ricardo, you're right, I will post on the other group, but is not
possible to use ISession.SetReadOnly on a child property.

Thanks,
Matteo




Mobile+39.346.74.73.454Office+39.39.045.51.16.472Fax+39.045.923.97.91Website
http://www.eye-soft.com Skypeeyesoft.itLinkedIn
http://www.linkedin.com/in/matteomigliore Blog
http://blogs.ugidotnet.org/matteomiglioreTwitter
http://twitter.com/matteomigliore CodePlexhttp://hyperionsdk.codeplex.com


On Tue, May 21, 2013 at 10:51 AM, Ricardo Peres <[email protected]> wrote:

> The proper list to ask these questions is nhusers. In this case, if I
> understand you correctly, you want to change the User to a different one,
> but not update its properties, right? I think you can call
> ISession.SetReadOnly on the User instance.
>
> RP
>
>
> On Monday, May 20, 2013 5:52:23 PM UTC+1, Matteo Migliore wrote:
>>
>> Hi,
>>
>> is possible to ignore the child properties during an update of the entity?
>>
>> I would update only the reference but not its properties.
>>
>> E.g.
>> class Order
>> {
>>     User User { get; set; }
>> }
>>
>> When I update the Order I would change the User that placed it but not
>> its properties (Name etc...)
>>
>> Thanks,
>> Matteo
>>
>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "nhibernate-development" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/nhibernate-development/0uApqvT2SLw/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to