Archive for March, 2015

13th March
2015
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.

  • You are currently browsing the Nephandus blog archives for March, 2015.