I want to write a C# application, when database get updated, that record data should be stored in an array. I have no idea to do that. How to get the updated record to my application at the same time updating is happend.
I use MySQL database
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please correct me if I’ve misread your questions, but I believe you’re looking for a way for your application to know what the database is changed by something other than your form?
Detecting external data updates is a significant architectural question. To get “push” notifications you would need to either have a data service that acts as your data store and simply persists the data back to the database or use some sort of notification mechanism in MySQL itself, which I do not believe is natively supported (and generally is not a great idea).
Your other option would be to have a polling loop on the UI side to check for changes periodically. Also not a great idea.