protected override void Seed(ProjektSklep.DAL.ProduktyContext context) { ProduktyInitializer.SeedProduktyData(context); // This method will be called after migrating to the latest version. // You can use the DbSet<T>.AddOrUpdate() helper extension method // to avoid creating duplicate seed data. }
//metoda seed,ktora wpisuje przykladowe dane protected override void Seed(Cukiernia.DAL.ProduktyContext context) { ProduktyInitializer.SeedKProduktyData(context); ProduktyInitializer.SeedUzytkownicy(context); //kom by nie nadpisywac rekordow w bazie // This method will be called after migrating to the latest version. // You can use the DbSet<T>.AddOrUpdate() helper extension method // to avoid creating duplicate seed data. }