Invalid object name ‘dbo.__MigrationHistory’ using Database.Create; EF6.02 when connection string is passed in
This happens because EF does some probing for the __MigrationsHistory table. For instance you can use EF with an existing database that was not created using EF Migrations but EF has no way of knowing it so it tries to connect to the database and uses the table to check this. If the table does … Read more