Raises the Saving event. This method is called just before
an entity is saved to the database (create or update). Override to perform
custom save processing or optionally cancel the save operation.

C# | Visual Basic |
protected virtual void OnSaving( CancelEventArgs e )
Protected Overridable Sub OnSaving ( _ e As CancelEventArgs _ )

- e (CancelEventArgs)
- The CancelEventArgs instance containing the event data.