2

Is it possible doing some entity framework migration commands from a lightweight command line like visual studio cl?

I can't access to my remote sql express server from local visual studio so I can't add-migration and update-database commands. So if there would be a cl, I could solve my problem.

Serhat Koroglu
  • 1,263
  • 4
  • 19
  • 41

1 Answers1

4

There is a Migrate.exe tool which comes with EF which you can run through the command line.

Documentation for it can be found at: http://msdn.microsoft.com/en-us/data/jj618307.aspx

Used something like:

Migrate.exe MyApp.exe /startupConfigurationFile=”MyApp.exe.config” /targetMigration=”myTargetMigration”
Thewads
  • 4,953
  • 11
  • 55
  • 71