How can i translate in linq lambda a query like this? I have two tables, i want to make a join with these conditions, is important for me having high performance, i need the linq query translate with join (not LEFT OUTER JOIN)
Select * from
QRY
JOIN TABLE1 a1 ON qry.table1Id = a1.Id
join TABLE2 a2 ON
(isnull(A1.FIELD1, '') != '' and isnull(a2.FIELD1, '') != '' and A1.FIELD1 = a2.FIELD1)
or (isnull(A1.FIELD2, '') != '' and isnull(a2.FIELD2, '') != '' and A1.FIELD2= a2.FIELD2)
or (isnull(A1.FIELD1, '') != '' and isnull(a2.FIELD2, '') != '' and A1.FIELD1= a2.FIELD2)
or (isnull(A1.FIELD2, '') != '' and isnull(a2.FIELD1, '') != '' and A1.FIELD2= a2.FIELD1)
where... some condition
is it possible in linq to do something like that or is necessary to make 2 queries?