I have .net Core 3.1 solution with WebApi and Persistance projects. WebApi is the solution's startup project, Persistance is where DbContext is defined. After a lot of reading and trying stuff, I still cannot achieve the following:
WebApistays as the solution's startup project.Migrationsfolder with all the migrations classes is in thePersistanceproject.- Migrations can be generated from VS Package Manager Console by typing
Add-Migration <migration_name>without any additional parameters like-Projector-StartupProject. - No need to change selection in the Package Manager Console
Default projectdropdown.