protected override void Seed(MusicStoreEntity.EntityDbContext context) { UserAndRoleSeed.AddRoles(); UserAndRoleSeed.AddUsers(); GenreSeed.Seed(); GenreSeed.Extend(); }
protected override void Seed(MusicStoreEntity.EntityDbContext context) { //context.Database.ExecuteSqlCommand("delete AspNetUsers"); context.Database.ExecuteSqlCommand("delete Albums"); context.Database.ExecuteSqlCommand("delete Artists"); context.Database.ExecuteSqlCommand("delete Genres"); // context.Database.ExecuteSqlCommand("delete AspNetUserRoles"); //UserAndRoleSeed.AddUserAndRoles(); //UserAndRoleSeed.AddSpecialUser(); GenreSeed.Seed(); GenreSeed.Extend(); }