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.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
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.