勤奋的码农
欢迎光临我的淘宝店:小丑情趣内衣店

select * from DoctorInfo doctor
where doctor.HosDepartId in
(select Id from HospitalDepartment hd
where hd.DepartmentId=5)


var a=from d in _entity.HospitalDepartment
where d.DepartmentId==5
select d;

List<int> lst=new List<int>();
foreach(var b in a)
{
lst.add(b);
}

var doc=from c in _entity.DoctorInfo
where lst.contains(c.HospitalId)
select c;

posted on 2014-08-17 17:47  勤奋的码农  阅读(1152)  评论(0编辑  收藏  举报

友荐云推荐