Skip to main content
.NET Standard 2.0+

PersistentBase.OnDeleting() Method

Invoked when the current object is about to be deleted.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v22.1.dll


protected virtual void OnDeleting()


Override this method in your PersistentBase descendants to add custom logic to a persistent object when the object is about to be deleted.


To automatically remove the associated child objects, use the AggregatedAttribute.

See Also