How to seed data with AddOrUpdate with a complex key in EF 4.3 January 1, 2023 by Tarik Try this: context.People.AddOrUpdate(p => new { p.FirstName, p.LastName }, people);