Skip to main content
.NET 6.0+

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IObjectSpace.IsObjectToSave(Object) Method

Indicates whether the specified object has been added, deleted or modified, but not committed in the transaction currently in progress.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

bool IsObjectToSave(
    object obj
)

#Parameters

Name Type Description
obj Object

An object for which it has been requested whether it should be saved.

#Returns

Type Description
Boolean

true, if the specified object has been added, deleted or modified and should be committed; otherwise, false.

#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 EFCoreObjectSpace.ModifiedObjects property. After calling the BaseObjectSpace.CommitChanges method, this list is empty until creating, modifying or deleting an object. The IsObjectToSave property is intended for determining whether a particular object should be committed in the transaction currently in progress.

See Also