1 to Many and Soft Deletions

Topics: Writing modules
Aug 27, 2015 at 7:51 PM
I have a one to many relationship between two custom content parts. It was built following the standard guide: http://docs.orchardproject.net/Documentation/Creating-1-n-and-n-n-relations

The Parent part has a public virtual IList<ChildPartRecord> property containing the children. (I believe NHibernate populates this list, correct?)

If I delete a child content item using the Admin UI, that child is still appearing in the parent's list populated by NHibernate. Is that normal? What's the best way to have the child list populated with a set that excludes any deleted items?

Thanks.