I have an Entity object with 2 tables: rest and rest_services
I want to replicate the following SQL query using a chain LINQ query (and put this in a decimal List)
SELECT a.rest_id
FROM rest a, rest_services b
WHERE a.rest_id = b.rest_id
AND a.manager_id = 500
AND b.channel = 5
I have gone through various stackoverflow questions
Join/Where with LINQ and Lambda
How to perform Join between multiple tables in LINQ lambda
I had minor success with the non chain syntax but I cannot put the second part of the WHERE correctly
var Hot =
from h in db.rest
join hs in db.rest_services on h.rest_id equals hs.rest_id
where h.manager_id == 523 && hs.channel== 5
select h.rest_id
Any help appreciated