First, let's say the code scenario where I'm experiencing this situation, first the error code
UserInfo UserInfo = session["UserInfo"asvar0);
The problem with this code is that the database value changes, the foreground page does not change, the refresh does not change, and the re-run program changes.
Breakpoint debugging----See any updates, the contents of the Attentiontopicinfos have not changed.
Finally think of----userinfo is removed from the session, session Stored user login information, content does not query update.
And the Topicinfos we need is the navigation property, the content of this attribute, also in the session.
Modify Code
UserInfo UserInfo = session["UserInfo" as UserInfo; = _userinfoservice.getentitesqueryable (U = u.userguidid = = Userinfo.userguidid). First ();//re-query UserInfovar0);
Successfully resolved to this issue. The solution is simple, but I believe the development will often encounter, and I do not search for any relevant articles in the problem,
So here to share with you.
EF Update, database value changes, foreground page does not change, refresh does not change, rerun program changes----problems encountered in development (resolved)