我有SQL查詢:如何SQL查詢轉換爲LINQ到SQL
SELECT News.NewsId, News.Subject, Cm.Cnt FROM dbo.News
LEFT JOIN
(SELECT Comments.OwnerId, COUNT(Comments.OwnerId) as Cnt
FROM Comments
WHERE Comments.CommentType = 'News'
Group By Comments.OwnerId) Cm
ON Cm.OwnerId = News.NewsId
但我想LINQ到SQL查詢,我怎麼能將此轉換爲LINQ?
你有什麼這麼遠嗎? – bkaid 2010-06-02 20:36:51