Target database for EF migration

Last modified 1 year ago
Danger icon
The last modifications of this post were around 1 year ago, some information may be outdated!


If you need to target a different database in an entity framework migration, use this command to inject a connection string.


Update-Database -ConnectionString "MY_CONNECTION_STRING" -ConnectionProviderName "System.Data.SqlClient"