Hi N,
Thanks for the positive feedback. There hasn't been much activity on the codebase for one simple reason, there's nothing I care to change. We're currently using S#arp Lite for a large order workflow management system using stateless .NET (
https://code.google.com/p/stateless/ ). The system we're developing is a large Finite State Machine with close to 20 sub-state machines. We've been really happy so far.
Anyway, with respect to your question, you need to override the default cascade behavior (using an NHibernate override class) so that when the Member gets deleted, it'll cascade deletes down the change. It's the all-delete-orphan that you need. Here's a snippet from our current project:
public class EmailMessageOverride : IOverride
{
public void Override(ModelMapper mapper) {
...
mapper.Class<EmailMessage>(map => map.Bag(o => o.EmailAttachments, a =>
{
a.Cascade(Cascade.All.Include(Cascade.DeleteOrphans));
a.Inverse(true);
}));
}
}