-4
任何人都可以幫助我將這個SQL轉換爲LINQ嗎?將SQL轉換爲Linq(「WHERE EXISTS」)
SELECT * FROM Room_Type b
WHERE Exists(
SELECT *
FROM Room a
WHERE a.RoomId NOT IN
(SELECT r.RoomId
FROM Reservation r
WHERE NOT (r.DepartureDate<='2015-02-16' OR r.ArrivalDate > '2015-02-20')
)
)
那你試試? – Uriil
我試過這是sql服務器。它工作正常。我只是不知道如何轉換它 – user3405577