linq to entity 主,从表
查询主表是人员信息 从表是注销的人员
先查询没有注销的人员

求帮忙啊
------解决方案--------------------var query =from p in db.人员
where !db.注销人员.Select(x=>x.UserId).Contains(p.UserId)
select p;
------解决方案--------------------var ary=from p in db.主表
where db.从表.Count(x=>x.UserId==p.UserId)<=0
select p;