i have a problem with a linq statement, i have a structure which looks like this:
Class1 has a id and a reference to a list of Class2
Class2 has a id and a reference to a list of Class1
now i want to make a linq query like this:
get all of Class1 where the id == 1
from these elements get all which dont have a Class2 with the id == 2 (in the reference list)
how to do this with one command?
How about the following …