如何將以下sql查詢轉換爲dot概念linq查詢?將SQL轉換爲Dot Notion Linq
SELECT f1.device_id, f1.device_model, f2.main_serial_number
FROM Device AS f1
INNER JOIN MainSerialNumber AS f2 ON f1.device_id = f2.device_id
WHERE (f2.main_serial_number IN
(SELECT f2_1.main_serial_number
FROM Device AS f1_1
INNER JOIN MainSerialNumber AS f2_1
ON f1_1.device_id = f2_1.device_id
GROUP BY f2_1.main_serial_number
HAVING (COUNT(f2_1.main_serial_number) > 1)))
什麼是「點概念」? –
你有嘗試過嗎? –
[see this](http://stackoverflow.com/questions/630045/linq-dot-notation-vs-query-expression) – ericyoung