Base solution for your next web application
Open Closed

Not able to update database & add migration #3805


User avatar
0
shanefryer4184 created

I have created many modules in asp.net zero with Angular 4 & .net core. Now to have backup, I archived the solution & cloned code into new repository. I changed the database name & then did Update-database which created a new db. But now I have created new class, for which I deleted old migrations & did Add-Migration. But getting the following error : "An error occurred while calling method 'ConfigureServices' on startup class 'Startup'. Consider using IDbContextFactory to override the initialization of the DbContext at design-time." I tried many options seeing net, but there is not much help. Can you help plz ?


2 Answer(s)
  • User Avatar
    0
    shanefryer4184 created

    Thanks ... I have solved it.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks for the feedback @ShaneFryer4184.