This issue will start coming as soon as you wrote the following lines in DBContext without adding 'base.OnModelCreating(modelBuilder);'
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
}
Two solutions:
1) Don't override OnModelCreating in DbContext Until it becomes necessary
2) Override but call base.OnModelCreating(modelBuilder)