Occurs before changes are saved.
Namespace:
C1.Win.Data.EntitiesAssembly: C1.Win.Data.Entity (in C1.Win.Data.Entity.dll)
Syntax
C# |
---|
[DescriptionAttribute("Occurs before changes are saved.")] public event EventHandler<CancelEventArgs> SavingChanges |
Visual Basic |
---|
<DescriptionAttribute("Occurs before changes are saved.")> _ 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.