So I can only do this by re-getting the domain entity using a Session.Get<>(id) and updating the properties in session, even though I can create the domain entity manually by using the DTO.
On Jan 18, 12:39 pm, Fabio Maulo <[email protected]> wrote: > without assign the null to the property of the domain-entity. > > On Tue, Jan 18, 2011 at 7:31 AM, Kevin Fairclough < > > > > > > > > > > [email protected]> wrote: > > Either Session.Merge or Session.SaveOrUpdate. The problem I have is > > that I can't think of a way to tell NHIbernate that the property from > > the DTO (a null value) is not really an update to NULL of the column. > > > On Jan 18, 12:11 am, Fabio Maulo <[email protected]> wrote: > > > re-attached using what ? > > > > On Mon, Jan 17, 2011 at 2:56 PM, Kevin Fairclough < > > > > [email protected]> wrote: > > > > Hi, > > > > > Does anyone know how to I can instruct NHibernate to stop updating a > > > > lazy property to null when the object is re-attached to a new session > > > > where that property has not changed? > > > > > Thanks > > > > > -- > > > > 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]<nhusers%[email protected] > > > > > > > <nhusers%[email protected]<nhusers%252Bunsubscribe@googlegroup > > s.com>> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/nhusers?hl=en. > > > > -- > > > 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]<nhusers%[email protected] > > > > > . > > For more options, visit this group at > >http://groups.google.com/group/nhusers?hl=en. > > -- > 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.
