CleanArchitectureWithBlazorServer
CleanArchitectureWithBlazorServer copied to clipboard
how to you recommend using this solution against an existing database?
For the purpose of migrating an existing application.
Thanks.
refer to migrating an existing application.
Refering to data migration, the solution works fine whene i run it from VS but whene i publish it and deploy it in IIS i got an error on Program.cs on line 56 .
how can i solve it pls ?
Thanks
show me error log
Delete Migrations folder inside your project. Set Database.SetInitializer<DatabaseContext>(null); inside your DatabaseContext initializer. Delete the table __MigrationHistory inside your database. For EF6+ the table is located under Tables but for earlier versions it is located under System Tables. Build and run. Profit.
Since @neozhu answered this question a few months ago, and nobody replied since then, this issue is considered solved.