0
如何將此sql查詢轉換爲linq查詢?在asp.net如何將sql查詢轉換爲linq查詢
SELECT distinct P.Pid,P.Name,PC.categoryName,
(select count(id) from POrderdetails where id=p.Pid)as detailsCount
FROM PTable P INNER JOIN PCATEGORY PC ON PC.pcategoryId=P.pCategoryId
ORDER BY detailsCount desc
對不起,我需要採取類別名稱也.. – Avinash 2009-10-07 12:36:11
我已根據您的意見更新。 – tvanfosson 2009-10-07 13:42:48