Code First migrations updating the wrong Db on localdb
问题 I am using code first migrations to create and update the database for my asp mvc site. I have a DbContext, which is in another project in the solution. public class EFDbContext : DbContext { public DbSet<Book> Books { get; set; } public DbSet<Author> Authors { get; set; } public DbSet<Publisher> Publishers { get; set; } } When i enable-migrations and add-migration [name] . It seems to create its own db called [foo-projectname].Domain.Concrete.EFDbContext Instead of the attaching to the