I am following the ASP.NET MVC4 tutorial by Scott Allen on Pluralsight, and I am trying to create an internet ASP.NET MVC web application using Entity Framework.
In the tutorial, Allen uses enable-migrations
, and then the command update-database
to create a database based on C# code. That command creates a database in the App_data
folder of the solution. There is no database created beforehand. The command creates a database using the SQL statements from the migration.
I am trying the same procedure, but it seems like there is something wrong with Visual Studio 2015's connection to LocalDB. I have scoured web for an solution to this problem for two days now, and here I am.
What steps do I take to connect LocalDB to Visual Studio 2015 in order to run that command successfully?
The image shows the error I am getting: