简体   繁体   中英

Can't open database in MVC project Visual studio 2015

I have an MVC project. When I added database I couldn't open it or create new tables. (I added it with right click on "App_Data" -> Add new Item -> SQL Server DB)

Right click on my DB and there is no option for creating tables or something 右键单击我的数据库,没有创建表之类的选项

When I open DB with double click there are strange symbols 当我双击打开数据库时,出现奇怪的符号

In Server Explorer my DB is absent

How can I work with my DB?

Open the .mdf file from Data Connections section in the Server Explorer, Right click on 'Data Connections' section on the Server Explorer and select 'Add Connection...' and select 'Microsoft SQL Server Database File' and browse your solution .mdf file.

截图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM