ComponentOne Data Source for Entity Framework
C1.Win.Data.Entities Namespace / C1DataSource Class / SavingChanges Event

In This Topic
    SavingChanges Event
    In This Topic
    Occurs before changes are saved.
    Syntax
    'Declaration
     
    
    Public Event SavingChanges As System.EventHandler(Of CancelEventArgs)
    public event System.EventHandler<CancelEventArgs> SavingChanges
    Event Data

    The event handler receives an argument of type System.ComponentModel.CancelEventArgs containing data related to this event. The following CancelEventArgs properties provide information specific to this event.

    PropertyDescription
     
    Remarks
    This event is raised from the SaveChanges method and allows a handler to cancel the operation before it begins. When a handler sets System.ComponentModel.CancelEventArgs.Cancel to True, the operation will be aborted and a subsequent SavedChanges event will not be raised.
    See Also