表t1有7个字段,包括id,code;表t2有5个字段,包括id;
现在要查询:t2上id与t1上的id相同且code为3的t1上的所有字段。
var query = from x in t1
join y in t2 on x.id equals y.id
where x.code == 3
select new { x, y };