Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any way with Entity Framework Code First to get nice picture of class structure?

I'm use to having tools that give me a nice detailed view of my data relationships. Anyway of doing this with code-first? Below is the kind of diagram I'm looking for.

enter image description here

like image 828
Peter Kellner Avatar asked Dec 10 '11 18:12

Peter Kellner


2 Answers

Entity Framework Power Tools (currently in CTP) allows you to visualize the model generated by Code First using the Entity Designer. Find the download here: http://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d.

like image 98
divega Avatar answered Oct 10 '22 19:10

divega


How about the Visual Studio Class Designer - present since VS 2005.

enter image description here

Basically do a Add New Item -> Code -> Class Diagram from your solution explorer and drag those classes onto the design surface that you want to have visualized.

like image 7
marc_s Avatar answered Oct 10 '22 21:10

marc_s