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

ASP.NET Core & Angular Implementation #6600


User avatar
0
inforica created

Hi- We initally downloaded the application template for ASP.NET COre & Angular with SQL Server as backend. But now we want to switch to MySQL database.

 I followed the approach outlined in the link below
 
 https://aspnetboilerplate.com/Pages/Documents/EF-Core-MySql-Integration?searchKey=mysql
 
 But the command  "add-migration  initial_Migration " did not create SQL for all Entities.  So the subsequent "Update-Database" failed saying "Table does not exist".
 
  Are we missing any step 
  
  Regards,
  Sesha K.
 
 

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

    Remove all migration classes (including *DbContextModelSnapshot.cs) under *.EntityFrameworkCore/Migrations folder.