Add migration - Both Entity Framework Core and Entity Framework 6 are installed

c# ef-migrations entity-framework entity-framework-core visual-studio-2017

Question

I have a solution with multiple projects one of them with EF 6 and another one with entityframeworkcore.

The migrations were working fine before adding EF6 project, but now I can't use the migration's command : add-migration 'anything'

Both Entity Framework Core and Entity Framework 6 are installed. The Entity Framework Core tools are running. Use 'EntityFramework\Add-Migration' for Entity Framework 6.

For the project with EF6 I can add a migration using this way: EntityFramework\Add-Migration 'anthing_here', but I can't add a migrations to the project with EFCore using this way.

Any suggestions ??

1
1
8/3/2018 1:45:00 PM

Popular Answer

For EF6:

EntityFramework\Add-Migration <MIGRATIONNAME>

For EF Core:

EntityFrameworkCore\Add-Migration <MIGRATIONNAME>
1
6/5/2019 11:39:31 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow