I have two tables Cars and Booking.
I want the following SQL query's equivalent in LINQ and I'm struggling with it
The SQL query is:
SELECT *
FROM CARS
WHERE Car_id NOT IN (SELECT Car_Id
FROM Bookings
WHERE JourneyCompletion = 'OnGoing');
The result should be a list of cars. How can I achieve this in Linq?