Back to Devexpress

PersistentBase.OnDeleting() Method

xpo-devexpress-dot-xpo-dot-persistentbase-f531b438.md

latest1.3 KB
Original Source

PersistentBase.OnDeleting() Method

Invoked when the current object is about to be deleted.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
protected virtual void OnDeleting()
vb
Protected Overridable Sub OnDeleting

Remarks

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

Tip

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

See Also

AfterConstruction()

OnChanged(String, Object, Object)

OnSaving()

PersistentBase Class

PersistentBase Members

DevExpress.Xpo Namespace