Skip to main content
.NET Framework 4.5.2+

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 Package: DevExpress.Xpo

Declaration

[Obsolete("Use ObjectSaving event instead", true)]
[Browsable(false)]
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.

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.

See Also