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

EFObjectSpace.GetObjectsToSave(Boolean) Method

Returns a collection of persistent objects that are added, deleted or modified in the current object context.

Namespace: DevExpress.ExpressApp.EF

Assembly: DevExpress.ExpressApp.EF.v18.2.dll

Declaration

public override ICollection GetObjectsToSave(
    bool includeParent
)
Public Overrides Function GetObjectsToSave(
    includeParent As Boolean
) As ICollection

Parameters

Name Type Description
includeParent Boolean

A boolean value. It is not used during the request for the objects to save.

Returns

Type Description
ICollection

The collection of persistent objects that are added, deleted or modified in the transaction currently in progress.

Remarks

When you create, modify or delete an object, you should then call the BaseObjectSpace.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 EFObjectSpace.ModifiedObjects property. After calling the BaseObjectSpace.CommitChanges method, this list is empty until creating, modifying or deleting an object.

See Also