How to view database diagram in a Code First using localdb

Xaqron picture Xaqron · Nov 24, 2012 · Viewed 29.6k times · Source

I have a Code First project with Entity Framework 5.0.0 using localdb created in Visual Studio 2012 Ultimate. Although I can see my class relations in a Class Diagram, how to see a visual diagram of automatic generated database by EF ?

Answer

Ralph Lavelle picture Ralph Lavelle · Jan 2, 2013

Install Entity Framework Power Tools Beta 4, restart Visual Studio, right-click on the context in your solution view and you'll see a new 'Entity Framework' option in the context menu. Select 'View Entity Data Model' to see a beautiful visual database diagram in Visual Studio. Voilà!

Entity Framework 6 Power Tools: Link