日期:2014-05-20 浏览次数:20889 次
select a.ClassName,a.PKSemClaID
from class_semester_ships a ,semester b ,org O,classtb c
where a.FKSemesterID = b.PKSemesterID and O.PKOrgID = c.FKOrgID and
b.SemesterName = '2013年上学期' and a.FKClassID = c.PKClassID and a.FKClassTypeID='85d75476-d5e3-420b-a7dc-112f6f470534'
order by a.ClassName
var classname = from a in dataContext.classtb
from b in dataContext.org
from c in dataContext.class_semester_ships
from d in dataContext.semester
where c.FKSemesterID == d.PKSemesterID && b.PKOrgID == a.FKOrgID
&& d.PKSemesterID == semerID && c.FKClassID == a.PKClassID
&& c.FKClassTypeID.ToString() == ClassTypeInformation[i]
group c.PKSemClaID by c.ClassName into g
select new
{