Monday, April 06, 2009

Reopening EDMX file in Visual Studio

In a complete unrelated search I've come across a post from Andrew Siemer where he mention a problem that has plagued me once in a while.

Sometimes, Visual Studio forgets how to open an EDMX file.

Although that on his post he says that the only fix would be to close and re-open the solution, there's another one, far more easy in my humble opinion.

Simple right-click the EDMX file, click Open With... and select XML Editor.

After opening the EDMX file with the XML Editor, double click the EDMX file and Visual Studio should open it properly... until you close the file again.

Then just repeat the steps above to have it open again.