有人可以为我将此查询转换为 linq2sql 吗?试图自学 linq 看看我是否想将它用于一个小项目,并被挂在最小的细节上......
SELECT
Warrant.ID,
Warrant.MeetingDate,
Warrant.MeetingType,
Warrant.Notes,
COUNT(WarrantArticles.ID) AS Cnt
FROM Warrant INNER JOIN WarrantArticles ON Warrant.ID = WarrantArticles.WarrantID
group by Warrant.ID, Warrant.MeetingDate, Warrant.MeetingType, Warrant.Notes