I need to create a statement in LINQ with 3 tables and an OR clause.
My function gets an integer, lets call it intZ . I have 3 tables: tableA , tableB and tableC .
tableA has columns int1 , int2 and intB . intB is associated with tableB .
problem: int1 or int2 of tableA may be intZ , and it must match a single tableC .
I need an OR condition, but I have no idea where to put it. Does this go to the where section? Or in the equals formula?
At the moment, I know how to join 3 tables, but the state is killing me.
What is the difference between the two ways to create statements in linq? Is there a performance impact?
edit: Ok, now I think it is more clear. intZ must be connected to intC from tableC , and this number can be int1 or int2 of tableA .

source share