I need to do a LINQ2DataSet query that does a join on more than one field (as
var result = from x in entity join y in entity2 on x.field1 = y.field1
Just to complete this with an equivalent method chain syntax:
entity.Join(entity2, x => new {x.Field1, x.Field2}, y => new {y.Field1, y.Field2}, (x, y) => x);
While the last argument (x, y) => x is what you select (in the above case we select x).
(x, y) => x
x