After migrating to Entity Framework 6 I get an error when executing unit tests on the build server.
I\'m using the DropCreateDatabaseIfModelChanges initiali
What works fine for me is excluding the migrations using define. Here is how:
Test that defines TESTTEST is not defined.TEST is defined:#if !TEST
internal sealed class Configuration : DbMigrationsConfiguration
{
//...
}
#endif
You might need to exclude all of your migrations, which isn't totally satisfying either (but I haven't tried it because I don't have any migrations yet).