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.

1 Answer 1

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”
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.