private void SeedData(HockeyDbContext context)
 {
     if (!context.Team.Any(r => r.Name == "Djurgården"))
     {
         context.Team.Add(new Team {
             Name = "Djurgården"
         });
     }
     if (!context.Team.Any(r => r.Name == "AIK"))
     {
         context.Team.Add(new Team {
             Name = "AIK"
         });
     }
     if (!context.Players.Any(r => r.Name == "Mats Sundin"))
     {
         context.Players.Add(new Player {
             Name = "Mats Sundin", Age = 49, JerseyNumber = 13
         });
     }
     if (!context.Players.Any(r => r.Name == "Peter Forsberg"))
     {
         context.Players.Add(new Player {
             Name = "Peter Forsberg", Age = 47, JerseyNumber = 21
         });
     }
     if (!context.Players.Any(r => r.Name == "Niklas Lidström"))
     {
         context.Players.Add(new Player {
             Name = "Niklas Lidström", Age = 50, JerseyNumber = 5
         });
     }
     //Users - user -> role
     context.SaveChanges();
 }
 public void Initialize(HockeyDbContext context)
 {
     //context.Database.EnsureCreated();
     context.Database.Migrate();
     SeedData(context);
 }