Is not better to continue the discussion on the correct group? :)
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 1:42 PM, Ricardo Peres <[email protected]> wrote: > Of course it is: > > Order o = ...; > > session.SetReadOnly(o.User, true); > > > On Tuesday, May 21, 2013 11:21:29 AM UTC+1, Matteo Migliore wrote: > >> 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.91 >> Websitehttp://www.eye-soft.com Skypeeyesoft.itLinkedIn >> http://www.linkedin.com/in/**matteomigliore<http://www.linkedin.com/in/matteomigliore> >> Bloghttp://blogs.ugidotnet.org/**matteomigliore<http://blogs.ugidotnet.org/matteomigliore> >> Twitterhttp://twitter.com/**matteomigliore<http://twitter.com/matteomigliore> >> CodePlexhttp://hyperionsdk.codeplex.**com<http://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<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 >>> nhibernate-development+**[email protected]. >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>> >>> >> >> -- > > --- > 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.
