简体   繁体   中英

alert wpf application when record inserted in database

I have an MVC and a WPF application, and basically I want to be able to alert the WPF application whenever a record is inserted in an SQL Database through the MVC application.

I am using EF and LINQ to do the CRUD in the MVC application, and the WPF is just a 'listener' retreiving the inserted records from the MVC app and displaying them on a GUI.

So what I would want to be able to do is get a popup alert in the MVC app once a record in the MVC app is inserted into the database.

What is the best way to do that?

Thanks

您可以使用StreamInsight进行连接,具体取决于您所使用的SQL版本,但id只是使WPF应用程序可以轮询数据库以进行更改

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM