Skip to main content
.NET 6.0+

IObjectSpace.GetObjectsToDelete(Boolean) Method

Returns a collection of persistent objects that will be deleted when the current transaction is committed, including objects that will be deleted in the parent transaction(s), optionally.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

ICollection GetObjectsToDelete(
    bool includeParent
)

Parameters

Name Type Description
includeParent Boolean

true, to include persistent objects that will be deleted in the parent transaction(s); otherwise, false.

Returns

Type Description
ICollection

The collection of persistent objects that will be deleted when the current transaction is committed.

Remarks

When an object is deleted, it’s not deleted immediately from the database. It’s marked as an object to delete and removed from the database the next time the IObjectSpace.CommitChanges method is called.

The GetObjectsToDelete method is intended to provide a collection of objects that are marked as deleted in the current transaction.

See Also