I have a solution with multiple projects one of them with EF 6 and another one with entityframeworkcore.
The Entity Framework Core tools are running. Use 'EntityFramework\\Add-Migration' for Entity Framework 6.
For EF6:
EntityFramework\Add-Migration <MIGRATIONNAME>
For EF Core:
EntityFrameworkCore\Add-Migration <MIGRATIONNAME>
I had this same scenario happen on our project that spans now ~20 years in history.
Depending on luck, I would sometimes get that PackageManagerConsole<\/code> was using
EFCore<\/code> sometimes
EF6<\/code> .
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 6.4.4 EntityFramework6 {Add-EFDefaultConnectionFactory, Add-EFProvider, Add-Migration, Enable-Migrations...}
Script 5.0.10 EntityFrameworkCore {Add-Migration, Drop-Database, Enable-Migrations, Get-DbContext...}
Script 2.0.0.0 NuGet {Add-BindingRedirect, Find-Package, Get-Package, Get-Project...}
Script 0.0 profile
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.