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?
之所以没有进行任何更改,是因为在进行数据提取时未更新DbContext,这可以解释为什么它仅在程序重新启动后才进行更改。
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.