What would be the equivalent of the following T-SQL query in L2E using Lambda expressions?
Select * from a INNER JOIN b on a.Foo = b.Foo OR a.Foo = b.Bar
I want to join a and b when a.Foo equal to b.Foo OR b.Bar
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t do an “or” style join in LINQ with an actual join clause. All join clauses in LINQ are equijoins. The closest you can come is a where clause: