WaiverID is an int so I am not sure what the non primitive type in question is.
var originalWaivers = _context.SurchargeWaivers
.Where(x => updatedWaivers.Select(waiver => waiver.WaiverID).Contains(x.WaiverID));
I am trying to query the db for the original entities so that I can update them.
UPDATE: More specifically, why is this a problem. Why is it that a list will work but an IEnumerable is a problem?