Session.BeforeSave Event
OBSOLETE
Use ObjectSaving event instead
Occurs before a persistent object is saved in storage.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
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. |
Remarks
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.