Skip to main content
.NET Framework 4.5.2+

Session.BeforeSave Event


Use ObjectSaving event instead

Occurs before a persistent object is saved in storage.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.2.dll


[Obsolete("Use ObjectSaving event instead", true)]
public event ObjectManipulationEventHandler BeforeSave

Event Data

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

Property Description
Object Gets the object currently being processed.
Session Gets the session whose persistent object is currently being processed.


The BeforeSave event is raised after the Session.Save method has been called. If a collection of persistent objects is saved, the BeforeSave event is raised for each persistent object in the collection. The event parameter’s ObjectManipulationEventArgs.Object property identifies the persistent object currently being saved.

See Also