public new static IReadOnlyList <FunkyCustomer> CreateFunkyCustomers()
                {
                    var customers = FunkyDataData.CreateFunkyCustomers();
                    var maxId     = customers.Max(c => c.Id);

                    return(customers
                           .Append(new FunkyCustomer
                    {
                        Id = maxId + 1,
                        FirstName = "Some\\Guy",
                        LastName = null
                    })
                           .ToList());
                }
Esempio n. 2
0
 public static void Seed(FunkyDataContext context)
 {
     context.FunkyCustomers.AddRange(FunkyDataData.CreateFunkyCustomers());
     context.SaveChanges();
 }