i'm trying to join two tables in entity framework and get the value from one of them to do another query on a third table this is the query i'm using
var fav = from favs in db.FAVORITES
join pins in db.PINS
on new { favs.USER_ID, favs.PIN_ID } equals new { userId, pins.PIN_ID } into res
from r in res
select new { favs.PIN_ID, r.TYPE_ID };
but it gives me a syntax error in The type of one of the expressions in the join clause is incorrect. Type inference failed in the call to 'GroupJoin' i have searched about the error and find that the people always say to make sure that the properties in the equals clause are the same type, and yes the are all of type non nullable int