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