static void Init(LazyContext db)
{
db.Database.ExecuteSqlCommand("delete from Products; delete from Categories"); // delete old data
var iphone = new Product { Name = "iPhone", Price = 6000000 };
var lumia = new Product { Name = "lumia", Price = 9000000 };
db.Products.Add(iphone);
db.Products.Add(lumia);
db.SaveChanges(); // save to generate product id
var phone = new Category { Name = "Phone", Products = new List<Product> { iphone, lumia } };
db.Categories.Add(phone);
db.SaveChanges(); // save category
}