如何將以下查詢轉換爲lambda表達式或LINQ?如何將此sql請求轉換爲Lambda表達式或LINQ
SELECT * FROM PrelevementClient as pc
LEFT JOIN ContratIBAN AS ci ON ci.IDCMPT = pc.IDCMPT
LEFT JOIN Contrat AS ctr ON ctr.NOCONTRAT = ci.NOCONTRAT
WHERE pc.IDPRELEVEMENT = '111'
AND DTPROCHAINPREL >= getdate()
困難在於有兩個左連接。
很難回答沒有實體模型(涉及3個實體及其關係)。 –