protected override void Seed(CarManagerDbContext context)
        {
            var states = new List <State>();

            states.Add(new State {
                Name = "VePo"
            });
            states.Add(new State {
                Name = "Regio"
            });

            context.States.AddRange(states);

            context.SaveChanges();
        }
Exemple #2
0
 public void Save()
 {
     context.SaveChanges();
 }