1
我不知道我該怎麼使用LINQ to SQLLINQ到SQL通過
SELECT p.*, T1.RecordCount
FROM Person p
INNER JOIN
(
SELECT PersonId, count(1) as RecordCount FROM [PersonView]
WHERE LastName like 'LIS%'
GROUP BY PersonId
) AS T1 ON T1.PersonId = p.PersonId
謝謝。完美工作!歡迎使用 – swamynarayanan
;) – octavioccl