After migrating to Entity Framework 6 I get an error when executing unit tests on the build server.
I\'m using the DropCreateDatabaseIfModelChanges
initiali
I found the same issue just after upgrading to EF6. After reading Stefan´s comment and having the same symptoms as he describes (tests were loading the Configuration class from my main project)
Solution/workaround in my case was to
class TestContext: MyDataContext
in my Tests projectDropCreateDatabaseAlways
to DropCreateDatabaseAlways
I could do this because most of my tests just extend from a PersistenceTest class, so I understand this might be a pain to change if you have a big catalog. So looking forward to other solutions