如何编写包含有和子查询的 linq 到实体查询?例如:
SELECT *
FROM dbo.Gavahi g
WHERE g.id NOT IN (
SELECT GavahiID
FROM dbo.AsnadMaliDetail ad
GROUP BY GavahiID
HAVING SUM (MablaghMoredEstefade) >= (
SELECT mablagh
FROM dbo.Gavahi g
WHERE g.id = ad.GavahiID
)
)