We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
跨库单表有效: SqlFunc.Subqueryable<FlowBoxInfo>().AsWithAttr() .Where(f => a.IncomingId.Equals(f.IncomingId)) .Sum(f => f.Qty), 跨库多表无效: SqlFunc.Subqueryable<FlowBoxInfo>().AsWithAttr() .LeftJoin<BoxInfo>((f, g) => f.BoxInfoId.Equals(g.Id) && g.StorageInfoId.HasValue) .LeftJoin<StorageInfo>((f, g, h) => h.Id.Equals(g.StorageInfoId)) .Where(f => a.IncomingId.Equals(f.IncomingId)) .Sum(f => f.Qty),
SqlFunc.Subqueryable<FlowBoxInfo>().AsWithAttr() .Where(f => a.IncomingId.Equals(f.IncomingId)) .Sum(f => f.Qty),
SqlFunc.Subqueryable<FlowBoxInfo>().AsWithAttr() .LeftJoin<BoxInfo>((f, g) => f.BoxInfoId.Equals(g.Id) && g.StorageInfoId.HasValue) .LeftJoin<StorageInfo>((f, g, h) => h.Id.Equals(g.StorageInfoId)) .Where(f => a.IncomingId.Equals(f.IncomingId)) .Sum(f => f.Qty),
The text was updated successfully, but these errors were encountered:
支持中 ,先可以用.LeftJoin((f, g, h) => h.Id.Equals(g.StorageInfoId) ,"表名")
Sorry, something went wrong.
SqlSugarCore 5.1.4.157-preview06
更新最新预览版本已支持
No branches or pull requests
跨库单表有效:
SqlFunc.Subqueryable<FlowBoxInfo>().AsWithAttr() .Where(f => a.IncomingId.Equals(f.IncomingId)) .Sum(f => f.Qty),
跨库多表无效:
SqlFunc.Subqueryable<FlowBoxInfo>().AsWithAttr() .LeftJoin<BoxInfo>((f, g) => f.BoxInfoId.Equals(g.Id) && g.StorageInfoId.HasValue) .LeftJoin<StorageInfo>((f, g, h) => h.Id.Equals(g.StorageInfoId)) .Where(f => a.IncomingId.Equals(f.IncomingId)) .Sum(f => f.Qty),
The text was updated successfully, but these errors were encountered: