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);
}
错误消息如下:
linq无法转为存储表达式不识别方法
分享到:
------解决方案-------------------- (from c in this.ObjectContext.proc_Vehiclerights(userName)
where s.Vehiclenum == c.Vehiclenum
select c
).Count() > 0