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

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -