次のSQLクエリをドット概念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)))