請告訴我如何將這個SQL查詢轉換成LINQ To SQL?提前致謝。SQL查詢LINQ To SQL等效
SELECT [Movies].[Name]
FROM
(
SELECT [Value]
FROM [Index]
WHERE ('WORD1' = [Word] and [MatchCount] = 1)
OR ([Word] = 'WORD2' AND [MatchCount] = 1)
GROUP BY [Value]
HAVING COUNT([Value]) = 2
) AS [Guids]
LEFT OUTER JOIN [Movies] ON [Movies].[Guid] = [Guids].[Value]
謝謝!這正是我所期待的。 – 2010-12-16 03:19:47