var result=from n in db.InspectStaticModel
orderby n.LineId
select new{
LineId=n.LineId
linecount =n.select(p=>p.CheckedTime).sum()
};
之后再 用where去0