Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Update Database #144


User avatar
0
sam created

Database migration Open Package Console Manager (Under Tools\Nuget Package Manager in the main menu), Select .EntityFramework project as Default project and run Update-Database command.

I am getting error at this step. Please advise.


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi Sam,

    Can you write some details. What is the exact error? Also, check these:

    • Are you using Visual Studio 2013?
    • Did you restored all nuget packages (Project is configured to automatically restore, if not right click solution and choice 'Enable Nuget Package Restore' and build again).
    • Have you installed SQL Server?

    Also, you can try to provide a connection string if needed, similar shown below:

    Update-Database -ConnectionString "Server=localhost; Database=YOUR_DATABASE_NAME; User=sa;Password=YOUR_PASSWORD;" -ConnectionProviderName "System.Data.SqlClient" -Verbose -ProjectName "YOUR_PROJECT.EntityFramework"