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

IObjectSpace.GetObjectsToSave(Boolean) Method

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

ICollection GetObjectsToSave(
    bool includeParent
)

Parameters

Name Type Description
includeParent Boolean

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

Returns

Type Description
ICollection

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

Remarks

When you create, modify or delete an object, you should then call the IObjectSpace.CommitChanges method. This method saves all the changes made to the current Object Space’s persistent objects to the database. To get the list of objects to be committed, use the IObjectSpace.ModifiedObjects property. After calling the IObjectSpace.CommitChanges method, this list is empty until creating, modifying or deleting an object.

See Also