Can you tell me how I can generate an ER diagram for my database1 (see below) created with VS 2015
Thanks in advance
Can you tell me how I can generate an ER diagram for my database1 (see below) created with VS 2015
Thanks in advance
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 entity relationship diagram. It was tested in VS2012
Visual Studio
Add
-> New Item…
“Data”
“ADO.NET Entity Data Model”
“Add”
“Generate from database”
or “Empty model”
“Generate from database”
selected enter connection
info, choose the database objects and done!The model is stored as a “.edmx”
file.
With Visual Studio you can create a static diagram (class diagram) but not entity relationship diagrams (for you DB). You will have to use another tool for this. For SQL server you can use SQL server Management Studio.
DB Objects in the editor will be related as in Diagram so Just relate objects in the Db and drag to editor.