Soft delete in cascade in NHibernate -
I try to delete a soft by applying DeleteEvent listeners
Public class MyDeleteEventListener: DefaultDeleteEventListener < / (If the unit is isofoletate is valid) {var e = "" ">
<< p> (ISoftDeletable) unit; E.IsDeleted = true; CascadeBeforeDelete (session, persister, unit, unit entry, transientEntities ); CascadeAfterDelete (session, persister, entity, transientEntities);} Other {base.DeleteEntity (session, unit, entity entry, enabled cashdaillet enabled, active, transient end);}}
} < / P>
()
But this sans Practices is one-to-many, mum-to-any solution to what many relationship?
Comments
Post a Comment