Occurs before changes are saved.
Namespace:
C1.WPF.Data.EntitiesAssembly: C1.WPF.Data.Entity (in C1.WPF.Data.Entity.dll)
Syntax
C# |
---|
public event EventHandler<CancelEventArgs> SavingChanges |
Visual Basic |
---|
Public Event SavingChanges As EventHandler(Of CancelEventArgs) |
Remarks
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.