Skip to content

Why 'insert' trigger three TableChangedEvent? #63

@dcuti8

Description

@dcuti8

I use the example code, but when i insert data in SSMS, the TableChangedEvent trigger three times in this order --- NotificationType.None, NotificationTypes.Update, NotificationTypes.Insert.

I want to monitor update, insert, delete event, when I delete and update data in SSMS it works perfectly. Just the insert trigger three times...

`var listener = new SqlDependencyEx(connectionString, "DatabaseName", "TableName");

listener.TableChanged += (o, e) =>
{
//logic code
};

listener.Start();`

Thanks for any reply!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions