public IQueryable<ProMainenance> getMyProMainenances(string userName)
{
return (from s in this.ObjectContext.ProMainenances
where s.auditID == userName ||
(from c in this.ObjectContext.LoginUsers
where c.ZT == true && c.InUserID == userName && c.UserId == s.auditID
select c).Count() > 0 ||
isAvaiable(s.Vehiclenum)
(from c in this.ObjectContext.proc_Vehiclerights(userName)
where s.Vehiclenum == c.Vehiclenum
select c
).Count() > 0
select s);
}
错误消息如下:
------解决方案-------------------- (from c in this.ObjectContext.proc_Vehiclerights(userName)
where s.Vehiclenum == c.Vehiclenum
select c
).Count() > 0