How to force EF Code First to query the database?
问题 I have a site managing a collection of rules and a separate Windows form application making file level changes based on the rules in the database. Both of these applications use the same libraries for a EF Code First DbContext, but each application is instantiating their own copy of the context. The problem is, each running version of the context is unaware of the changes made by the other version. E.g. If I change a rule on the site, the forms app still has the previous version. I'm aware I