I experience an error when trying to create a database using the following code. Note the problem does not happen if the connection string is not passed in. Also the problem
You can turn off code first database initialization for your database, by adding this to your context's constructor:
System.Data.Entity.Database.SetInitializer(null);
This should prevent the attempt to access dbo.__MigrationHistory.
dbo.__MigrationHistory