The current project I am working on, I am telling Entity Framework to do nothing by setting SetInitializer with params null:
public EfDbContext()
{
Database.SetInitializer<EfDbContext>(null); //new NullDatabaseInitializer<EfDbContext>());
}
I have a script that creates a few table. When I running the script, it is creating the dbo.__MigrationHistory in the DB.
How can I disable migration, I thought the above code would disable that.
Am I missing something? I also don't have migration enabled and any configuration files for migration.
I am using EF 6.1.3.