Using EF5 database first. On creation of my context, I'm setting
true. Something happens to change that to
false (nowhere in our code is that setting changed).
At various points, I'm checking whether it's still
true by using this snippet of code (getting context from an entity object). The problem only manifests when running multiple threads (load some entities, then pass them through multi-threaded code). It doesn't occur at any consistent point in the code, so it's impossible to determine what exactly causes it.
I guess I'm just hoping somebody might know more about the internal workings of EF and give me a clue...