Hello everybody,

I have a Parent entity, which has some children in a collection mapped as a 
List (I need them to be ordered). 

I didn't set the Inverse attribute, because it interferes with the 
good behavior of the index property of the children table.

I have set Cascade as All && DeleteOrphan on the mapping of the collection.

When I remove a child from the collection, and update the parent, before NH 
effectively deletes the row, there is an Update query, which sets the 
ParentId of the child to NULL.

Is it possible to suppress this query? 

I guess this is the purpose of the Inverse attribute, and I can't avoid 
that. But I'm curious to know if I can avoid that query.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/ObqTMcCLJJAJ.
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