问题
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