Mow I can translate this:
SELECT *
FROM vectors as v
INNER JOIN points as p
ON v.beginId = p.id OR v.endId = p.id
Into linq2sql statement? Basically I want this:
var query = from v in dc.vectors
join p in dc.points on p.id in (v.beginId, v.endId)
...
select ...;
I know, I can do this dirty through Union construction, but is there a better way than duplicating most of the query?