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
I faced the same issue. It means that EF is not able to find the __Migration history table. also note for some reason it has to be dbo.__MigrationHistory (note dbo). Ensure that you have run "update-database" atleast once before running the Context