Browse by Tags

NHibernate bag did not delete records when IList.Clear() was called
Published Wed, Sep 16 2009 11:30 AM | Ramon Smits
I was having a problem where NHibernate did not automatically delete childs if a collection was emptied by calling IList.Clear() like in the following code example: var s = GetSession(); var parent = s.Get<Parent>(1); parent.Childs.Clear(); What...
Filed under: ,