0
會是什麼LINQ表達式相當於以下TSQL查詢:LINQ表達式相當於TSQL查詢
SELECT c.[CustomerId]
,c.[Name]
, (SELECT COUNT(*) FROM Incidents WHERE CustomerId = c.CustomerId) AS IncidentsCount
, (SELECT COUNT(*) FROM Opportunities WHERE CustomerId = c.CustomerId) AS OpportunitiesCount
, (SELECT COUNT(*) FROM Visits WHERE CustomerId = c.CustomerId) AS VisitsCount
FROM [Customers] c
非常好,謝謝! – desautelsj 2009-09-19 10:46:47