Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating Database diagram in visual studio 2015

How do i create a database diagram in MS Visual Studio 2015? There is no option to create one.

like image 388
Muneeb Rehman Avatar asked Nov 13 '15 13:11

Muneeb Rehman


People also ask

How do you create a database diagram?

To create a new database diagramIn Object Explorer, right-click the Database Diagrams folder or any diagram in that folder. Choose New Database Diagram on the shortcut menu. The Add Table dialog box appears. Select the required tables in the Tables list and click Add.


1 Answers

Add to project ADO.NET Entity Data model. which create .edmx file and contains a tables with relation. More info MSDN.

  1. https://msdn.microsoft.com/en-us/library/ms189078.aspx

  2. https://msdn.microsoft.com/en-us/library/ms171978.aspx

It also install Entity framework.

Open Server explorer > Connection to Database. Select Microsoft SQL Server(you must be installed it first ), Server name=.; (or your PC name) and then choose your database schema.

If this is complicated to you,please watch this video :) Good luck

Visual Studio tutorial: Working with databases in Server

like image 196
Sachith Wickramaarachchi Avatar answered Nov 05 '22 14:11

Sachith Wickramaarachchi