Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

PersistentBase.OnDeleting() Method

Invoked when the current object is about to be deleted.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.2.dll

NuGet Package: DevExpress.Xpo

Declaration

protected virtual void 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