SQL Server Object Explorer not showing a database

后端 未结 1 593
离开以前
离开以前 2021-01-18 10:28

It\'s a very small code-first EF6 Project. I added a migration and updated a database successfully. Here\'s the output:

PM> update-database -Verbose
         


        
1条回答
  •  无人共我
    2021-01-18 11:12

    Firstly: You are using the Master database. Check this post to know how to set your connection string: Cant find my EF code first database.

    Secondly: You didn't connect to SQLEXPRESS:

    • In your Server Explorer click on Connect to Database.

    • Then in the Server name type .\sqlexpress

    • Then Test Connection.

    • then in the Select or enter a database name you should get your database.

    0 讨论(0)
提交回复
热议问题