The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll

Declaration

ICollection GetObjectsToSave(
    bool includeParent
)
Function GetObjectsToSave(
    includeParent As Boolean
) As ICollection

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