Search code examples
asp.net-mvcentity-framework-6visual-studio-2019sql-server-2019

EF not showing database in Visual Studio 2019


I am using Visual Studio 2019 and SQL Server Management Studio 2019. I have created a database

enter image description here

Now, by using the database-first approach, I am trying to add the model but It's not showing the database.

enter image description here

I have also tried to change the data source to other but still, it's not showing my database

enter image description here

Any help would be highly appreciated.


Solution

  • Try the server name with SQLExpress too

    i.e. Desktop-HFI8QQ8\SQLexpress