Main image
13th March
written by Chris

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.

Leave a Reply