Zaf
Zaf

Reputation: 91

Visual studio 2012 migration (Entity Framework) connection string error

I'm using Visual Studio 2012, EF, trying to update my database using the console but it fails. I get a message that the connection string is incorrect although in reality it is fine.

Upvotes: 0

Views: 502

Answers (1)

Zaf
Zaf

Reputation: 91

Just wanted to share this piece of info to whomever may need it.

If you get a connection string error, and after checking the actual validity of the string you're still stuck having problems with migration, you might want to try and set in the solution as start up project the project that the DB is updated from (and setup the connection string there like it should be).

Apparently VS uses the config file of the start up project.

Hope this helps.

Upvotes: 1

Related Questions