Skip to content

Instantly share code, notes, and snippets.

@Dillie-O
Created May 24, 2017 14:39
Show Gist options
  • Save Dillie-O/63d9472e4e59932f62cb020745346611 to your computer and use it in GitHub Desktop.
Save Dillie-O/63d9472e4e59932f62cb020745346611 to your computer and use it in GitHub Desktop.
[Run Migration Against Different Database] Allows you to run EF migration and target a different database. Handy when automatic migrations cause issue on remove server #tags:ef,migration,sql
Update-Database -ConnectionString "MY_CONNECTION_STRING" -ConnectionProviderName "System.Data.SqlClient"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment