.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

IObjectSpace.ObjectSaved Event

Occurs after saving changes made to a specified persistent object to the database.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.1.dll

Declaration

event EventHandler<ObjectManipulatingEventArgs> ObjectSaved
Event ObjectSaved As EventHandler(Of ObjectManipulatingEventArgs)

Event Data

The ObjectSaved event's data class is ObjectManipulatingEventArgs. The following properties provide information specific to this event:

Property Description
Object Provides access to the object that is being manipulated.

Remarks

Raise this event after saving changes made to the object passed as the handler's ObjectManipulationEventArgs.Object parameter.

When implementing the IObjectSpace interface in the BaseObjectSpace class' descendant, you don't have to declare this event. It's declared within the BaseObjectSpace class. The BaseObjectSpace.OnObjectSaved method raises this event. So, you should only invoke the OnObjectSaved method after an object is saved.

NOTE

The object changes which have been saved to the database are the changes made after the previous call of the IObjectSpace.CommitChanges method.

See Also