SqlFunc.Subqueryable 子查询时 报 it and a need same name 返回
SqlSugar
沟通中
2
634
kuizi 发布于2025/12/24
悬赏:0 飞吻
_BTransportmainService.Queryable()
.Where(a=> a.State == 1 && a.Sendtime >= begintime && a.Sendtime <= endtime)
.Where(a => SqlFunc.Subqueryable<BTransportdetail>().Where(p => a.Inoneflag == p.Inoneflag && !p.ArrivedDate.HasValue).Any())
.Count();
查询 时 报 it and a need same name 是什么原因
热忱回答(2)
-
fate sta VIP0
2025/12/25这个代码看不出问题。可以提供完整的DEMO
错误是表达式中用到了it
需要改成和a统一
0 回复 -
fate sta VIP0
2025/12/25https://www.donet5.com/Home/Doc?typeId=2366 按模版提供DMEO删掉OBJ和BIN打包上传。
0 回复