What we have: MySQL, .NET Connector, C#, ADO Model with relations (many to many)
I have three tables: users, groups and usergroups
Another program add new items to users and usergroups tables, but then i try to get all users from any group i get no changes. I get changes only if i restart my program.
So my question is how to fix it? How to update related objects from database. Or is it possible to turn off caching?
The reason you aren’t getting any changes is that your DbContext isn’t being updated when you do a pull for data, which could explain why it pulls changes only after your program restarts.