I'm going straight to the point here.
I'm actually trying to learn C# asp.net mvc pattern here and I am using the Entity Framework code-first approach however when I tried to enter the update-database
on the Package Manager Console it gives me error.
ClientConnectionId:00000000-0000-0000-0000-000000000000 Error Number:2,State:0,Class:20 A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)
it says that the server was not found or not accessible however, I've tried connecting on the sql server using the model first approach and there's nothing wrong with it... I don't know why it gives me error when I try the Entity Framework code-first approach.
I am using sqlserver 2014
I'm really new to this so please bear with me...
here's my connection string
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-movieRental-20170103091543.mdf;Initial Catalog=aspnet-movieRental-20170103091543;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
thanks in advance.