This is less of a blog post and more of a brief public service announcement. Â If you are using Entity Framework and you change the namespace of your Context file bad things will happen. Â Future Add-Migration commands will attempt to re-script your entire database. Â Google will be remarkably unhelpful in diagnosing this problem.
“But,” you say, in your best Comic-Book-Guy voice, “changing namespaces is annoying; no one would just change their Context’s namespace.” Â To which I reply, “if you’re using ReSharper you might, because it pretty much automates the process and nags you if you move files around.”
Not that solving that problem just consumed an hour of my day or anything.