我有两张桌子:
PlanMaster (PlanName,Product_ID)
和
ProductPoints (Entity_ID,Product_ID,Comm1,Comm2)
现在我将Entity_ID存储到一个存储在’int’中的Session中:
int getEntity = Int16.Parse(Session["EntitySelected"].ToString());
Entity_ID = getEntity
这是我的LINQ查询:
var td = from s in cv.Entity_Product_Points join r in dt.PlanMasters on s.Product_ID equals r.Product_ID where s.Entity_ID = getEntity select s;
Cannot implicitly convert type ‘int?’ to ‘bool’
这里出了什么问题?感谢您提前的意见!
解决方法
尝试将其更改为
where s.Entity_ID == getEntity
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。