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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -