Using code first classes to create entity diagrams

code-first entity-framework

Question

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?

1
6
9/29/2014 10:00:51 AM

Accepted Answer

Assuming your schema has been created from the Code First classes you can reverse the db into a an edmx to visualise the Model. Any classes generated from this obviously won't be related to your Code First classes though.

3
4/25/2011 7:53:04 PM

Popular Answer

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.



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow