Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rider. EF Code First Migrations

Is there an easy way to scaffold migrations using old EF outside of Visual Studio? I would like to do it via Rider IDE if it possible.

like image 564
Dzmitry Martavoi Avatar asked Jan 03 '18 22:01

Dzmitry Martavoi


3 Answers

You can also use a jetbrains plugin made for handling migrations

https://plugins.jetbrains.com/plugin/17026

like image 57
Minasie Shibeshi Avatar answered Oct 06 '22 21:10

Minasie Shibeshi


I don't see these options related to ef core. The plugin makes sense.

(For MacOS, be sure, your dotnet root folder path is /usr/local/share/dotnet/. I'm telling this because Rider installs and places it in another folder. Further it gives rise ef to not work properly. You can see your dotnet folder on terminal by writing which dotnet)

Installing that plugin, enter image description here

Then,

enter image description here

like image 3
snr Avatar answered Oct 06 '22 21:10

snr


For EF Core, you can use https://blog.jetbrains.com/dotnet/2017/08/09/running-entity-framework-core-commands-rider/

For EF 6 you may want to check https://blog.jetbrains.com/dotnet/2018/04/06/entity-framework-support-rider-2018-1/

like image 2
maartenba Avatar answered Oct 06 '22 23:10

maartenba