I had the same problem. I created a quick solution, maybe not the best solution (as this may affect performance), but it worked for me.
In my solution, I have a class with my DataContext declared at the class level, so I can use it in everything.
In my solution, everything I wanted to do (like you) was changed by the account type identifier to another account type identifier (in the database it is FK) for the user.
Since the DataContext has already been loaded, it did not allow the change. Work around?
I created a function in which I create a new instance of the DataContext, run my LINQ query, post the changes, and then delete the DataContext after.
Brenden stefano
source share