8,497
社区成员
发帖
与我相关
我的任务
分享
var query= from b in dataContext.employee
join c in dataContext.class_semester_ships
on b.PKEmpID equals c.FKHeadeTeacherID
select b.PKEmpID; //找出班主任ID
var News = from a in dataContext.employee
where !query.Contains(a.PKEmpID)
select a.PKEmpID;
public static bool Contains<TSource>(
this IEnumerable<TSource> source,
TSource value
)
http://msdn.microsoft.com/en-us/library/bb352880.aspx