How to push MySQL Database Data to a MVC .NET web application

早过忘川 提交于 2021-02-08 10:07:52

问题


I would like to know how I can push data changes in a MySQL database table to an MVC Web Application. So if the table changes - the web app gets updated .. I am not talking polling or querying - I am talking MySQL has a table changed - and that table data change gets sent to the Web App - clients.

I see that SQL server seems to have some functionality built in (full version but not in express), I am not seeing this in MySQL database either (which is really what I need).


回答1:


In SQL Server you can use SqlDependency and SignalR for your requirement.

But SqlDependency not available for MySql database.

This is a sample in SQL Server + SignalR https://techbrij.com/database-change-notifications-asp-net-signalr-sqldependency



来源:https://stackoverflow.com/questions/55057725/how-to-push-mysql-database-data-to-a-mvc-net-web-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!