我有一個SQL查詢,我想轉換爲LINQ quyery,PLZ幫助我!將SQL查詢轉換爲Linq查詢?
SELECT TOP 10 UPER(C1.NAME)
FROM CUSTOMER C1 WHERE C1.NAME LIKE 'A%' AND C1.ID NOT IN
(SELECT TOP 20 C2.ID FROM CUSTOMER C1 WHERE C1.NAME LIKE 'A%' ORDER BY C2.NAME)
ORDER BY C1.NAME
UPDATE
SELECT TOP 10 UPPER(C1.NAME)
FROM CUSTOMER C1 WHERE C1.NAME LIKE 'A%' AND C1.ID NOT IN
(SELECT TOP 20 C2.ID FROM CUSTOMER C2 WHERE C2.NAME LIKE 'A%' ORDER BY C2.NAME)
ORDER BY C1.NAME
DataContext類中聲明 「DB」。 對不起,我可憐的英語!
掛上......「包含」什麼?我不認爲這會編譯。 – 2011-05-07 05:12:44
@JustinMorgan回覆更新...謝謝 – 2011-05-07 05:29:36