I have a One-to-Many relationship in NHibernate i.e. One 'city' has
Many 'buildings'. If I add new 'buildings' on Many side list in my
code and save parent object 'city', it works fine (NHibernate adds new
rows for 'building' in database). But when I delete some 'building'
objects from Many side list and save parent object 'city' then it does
not delete those deleted 'building' objects from database. I have to
loop through those 'building' object manually and delete it
individually.

Is it the behavior of NHibernate or I am missing something? Please
suggest.

Thank you.
Manoj

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