[]
Occurs before changes are saved.
public event EventHandler<CancelEventArgs> SavingChanges
Type | Description |
---|---|
EventHandler<CancelEventArgs> | Occurs before changes are saved. |
This event is raised from the SaveChanges() method and allows a handler to cancel the operation before it begins. When a handler sets Cancel to True, the operation will be aborted and a subsequent SavedChanges event will not be raised.