Hey all,
EDIT: For the inner queries, there could be more than one match per inner query. It grabs a bunch of tags with the same game_ID. Thats why .First or .Max won't work.
Need some help, I have a query in LINQ that looks like this:
from yy in Tags_Lookups
where yy.Tag_ID == (from xx in Tags_Lookups
where xx.Game_ID == new Guid("4962d645-711c-4db8-a7ce-ae9b36dd730c")
select xx.Tag_ID)
select yy
I am getting an error that looks like this:
Operator '==' cannot be applied to operands of type 'int' and 'System.Linq.IQueryable'
I have also tried this with no luck:
from yy in Tags_Lookups
where yy.Tag_ID.Contains(from xx in Tags_Lookups
where xx.Game_ID == new Guid("4962d645-711c-4db8-a7ce-ae9b36dd730c")
select xx.Tag_ID)
select yy
With this Error:
'int' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'int' could be found
Can anyone help me write a good query that will work?