how can I simulate the following sql query using linq
Select * From Resource Where Id in
(
Select ResourceId From ResourceRelCategory Where CategoryId =8
)
note that Resource and Category have Many to Many relationship and ResourceRelCategory is an association table between them.
thanks
You could try something like:
or
or maybee the other way around: