Hello,
I'm new into using Linq and I need some help.
I'm trying to write a query that create two outer joins between CRM 2011 entities. I believe it is many possible way of solving this, and I found an example that I tried to copy, but without success.
My query tries to connect a Lead ("LeadSet") with SystemUser ("SystemUserSet") and PostCodes ("sea_postcodeSet)" by using Guids.
Here is my code:

The problem is that I get an error:
System.InvalidOperationException: A 'SelectMany' operation must be preceeded by a 'Where' operation that filters by an entity ID.
If I comment out either "SystemUserSet" or "sea_postcodeSet" the query returnes data.
Any clue why..??
regards,
Marius Holm Enerud