LINQ join with OR

前端 未结 2 516
清酒与你
清酒与你 2021-01-17 14:35

I want to do a JOIN with LINQ using an OR statement.

Here is the SQL query I\'m starting with:

SELECT  t.id
FROM Teams t
INNER JOIN Games g 
   ON (g         


        
2条回答
  •  死守一世寂寞
    2021-01-17 15:21

    The where clause applies a boolean condition, so using "||" is the way to go. You can chain multiple where clauses but I believe that will give you a "and" operation, rather than an "or".

提交回复
热议问题