A while back, we received a very interesting question: how can we run Entity Framework commands like adding migrations or updating the database, in Rider?
@JetBrainsRider how do I run EF commands in Rider? in VS I use the pkg manager console
— Ricardo Rodrigues (@ricmrodrigues) March 13, 2017
In Visual Studio, Entity Framework commands like
Update-Database are typically run in the Package Manager Console. This works great, but unfortunately, it isn’t very portable. These commands are PowerShell-based, and the Package Manager Console ties to several Visual Studio-specific objects making it impossible to host it elsewhere.
No need to worry, though! With Entity Framework Core, Microsoft provides command line tools that work cross-platform, which in this case means in any IDE on any supported operating system. Let’s see how to get started!