0
以下查詢任何人都可以請幫我轉換爲Lambda表達式如何將下面的sql轉換爲lambda表達式?
SELECT p.partno,
sp.property,
count(s.serialNo) AS PropertyCount
FROM events e
JOIN Products p ON p.productguid = e.productguid
JOIN eventtypes et ON et.eventtypeguid = e.eventtypeguid
JOIN serialcontainerevent sce ON sce.EventGUID = e.EventGUID
JOIN serials s ON s.serialguid = sce.serialguid
JOIN statuses st ON st.statusguid = s.statusguid
LEFT OUTER JOIN serialproperties sp ON sp.serialguid = s.serialguid
WHERE p.partno = '21101'
AND st.code = 'NOTRECEIVED'
AND e.Field1Value = '21101'
AND e.Field2Value = '21101'
AND e.Field3Value = '21101'
AND e.Field4Value = '21101'
AND e.Field5Value = '21101'
AND sp.property = 'Delivery Date' --group by p.partno,s.serialno
GROUP BY p.partno,
sp.property