Exemple #1
0
 private static void SeedDummyData(ListItemContext context)
 {
     context.AddRange(new[]
     {
         new ListItem {
             Text = "Feed dog"
         },
         new ListItem {
             Completed = true, Text = "Walk dog"
         },
         new ListItem {
             Text = "Bury dog (because I didn't feed him, but did walk him to death)"
         },
         new ListItem {
             Text = "Buy flowers for wife (because I killed dog)"
         }
     });
     context.SaveChanges();
 }