我将如何获得县列表中的参与者?我得到了 var 县中的县,然后我想得到所有在县列表中具有 CountyOfParticipationId 的参与者。
if (collaborationId != null)
{
var counties = (from c in db.CountyCollaborations
where c.CollaborationId == collaborationId
select c).ToList();
participants = participants.Where(p => p.CountyOfParticipationId in counties);
}