Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating entity diagrams from code first classes

I was just reading Asp.net MVC3 tutorials (Models (Data))

On this page tutorial 4 of 10 on the ASP.NET website, it is shown that an entity diagram is created from code first classes. How to generate them?

like image 860
Praveen Prasad Avatar asked Apr 25 '11 19:04

Praveen Prasad


People also ask

How do you create a Class diagram for ERD?

Select [Convert to Class Diagram] from ER Diagram's pop-up menu in the structure tree. The diagram and all the model elements inside will be converted to a Class diagram and appears in the tree view.

Where can I create entity relationship diagram?

How do I create an ER diagram from scratch? You can create an ERD from scratch using the entity relationship shape library in the shape manager. Drag and drop shapes onto your canvas and manually label entities, attributes, and keys, and determine all appropriate relationships and cardinalities.


1 Answers

This can be done very easily by using the Class Diagram. Add New Item > Class Diagram. Then drag and drop your code first classes into the diagram from the solution explorer.

like image 121
Brian Avatar answered Oct 03 '22 07:10

Brian