19

In order to create an ERD diagram for new projects I have been using Visual Studio's entity framework designer. Essentially I'm creating a "dummy project", adding entity framework via Nuget and diagramming away (I don't use Microsoft's Entity Framework thus the dummy project).

Is there another way to create such diagrams natively within Visual Studio 2010 Ultimate?

Entity Framework Designer

4
  • Hi, Any luck with your search? Dec 22, 2015 at 12:57
  • 1
    Hi Jakub, lately I have been using balsamiq mockups for my diagramming needs. Unfortunately nothing that directly plugs into visual studio however.
    – Jesse
    Dec 23, 2015 at 4:36
  • I'm using yEd and trying to switch over to EntityFramework diagrams but it gets tricky to use diagramming functionality there without implementing it (and I can't as currently using home made ORM) Jan 19, 2016 at 8:20
  • I haven't done it myself but the following post suggests the "Entity Data Model Designer", available with either "SQL Server Data Tools" or the "Web Developer Tools", is the answer. Your mileage may vary :) stackoverflow.com/a/42489843/418950 Feb 15, 2018 at 23:42

1 Answer 1

6

Assuming you already have a database, you can easily generate an ERD following the steps below.

Ensure you installed either Microsoft SQL Server Data Tools or Microsoft Web Developer Tools in order to get the Entity Data Model Designer.

These are the steps to generate an entity relationship diagram. It was tested in VS2012

  1. Open Visual Studio
  2. Create a project or open an existing project (must be Visual Basic, Visual C# project, or Console Application)
  3. Right-click the project and choose Add -> New Item…
  4. Under Visual C# Items select “Data”
  5. Select the template “ADO.NET Entity Data Model”
  6. Give it a name and click “Add”
  7. Select “Generate from database” or “Empty model”
  8. If “Generate from database” selected enter connection info, choose the database objects and done!

The model is stored as a “.edmx” file.

1
  • yeah, make sure you use the .net framework versions of said options. On net core projects the "ADO.NET Entity Data Model" is not an option Apr 8, 2022 at 17:33

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.