0
我已經創建了一個SQL查詢,如下所示:轉換SQL內部聯接,GROUP BY和秩序LINQ
SELECT s.FullName, s.[Id], COUNT(t.[User]) AS Records
FROM dbo.AspNetUsers s INNER JOIN dbo.PBBuilds t
ON s.Id = t.[User]
GROUP BY t.[User], s.[FullName], s.[Id]
ORDER BY COUNT(t.[User]) DESC
我試圖將其轉換爲LINQ查詢,這是多遠我有:
Dim results = From H In context.Users
Join C In context.PBBuilds On H.Id Equals C.User
Group By C.User Into
任何人都可以請指教。
錯誤LINQ查詢 –
如何用P和U –
選擇值ca't組用於克對象 –