context.Districts.AddOrUpdate(c => c.Name,
new District() { Name = "Beirut" },
new District() { Name = "Beqaa" },
new District() { Name = "Mount Lebanon" },
new District() { Name = "Nabatiye" },
new District() { Name = "North" },
new District() { Name = "South" }
);
context.Cities.AddOrUpdate(c => c.Name,
new City() { Name = "Aley",District = },
new City() { Name = "Baabda",District = },
new City() { Name = "Matn", District = },
new City() { Name = "Tripoly" ,District = }
i tried adding this in the middle but it is adding the "Mount Lebanon", thus am having doublicates
BuyLebanonDb entity = new BuyLebanonDb();
var mounLebanon = entity.Districts.FirstOrDefault(d => d.Name == "Mount Lebanon");
var north = entity.Districts.FirstOrDefault(d => d.Name == "North");