Beispiel #1
0
        public static void InsertCustomerData(HarvDbContext context)
        {
            context.Database.EnsureCreated();
            context.Customers.Add(
                new Customer
            {
                Name = "Simon"
            }
                );



            context.SaveChanges();
        }
Beispiel #2
0
 public static void InsertData(HarvDbContext context)
 {
     InsertCustomerData(context);
 }