SQLDependency_OnChange-Event fires only one single Time

后端 未结 6 831
故里飘歌
故里飘歌 2020-12-30 21:10

I\'m working with SQLDependency to notify me if there is a change in the Database. After Program Start-Up it works just fine. When I make a first change the Event fires. Wo

6条回答
  •  天涯浪人
    2020-12-30 21:48

    Look my friend:

    dep.OnChange -= this.dep_OnChange;
    

    you un-fired your event; which is not true; just delete this line;

提交回复
热议问题