0
            var z = from x in resp1.table1
                    join y in resp2.table2 on x.fields equals y.fields
                    select
                    new {y.fields, y.fields1, x.fields2, x.fields3, x.fields4};

而且我想要一张新桌子,所以基本上我想加入三个或更多桌子,但我不知道如何

4

2 回答 2

1
var z = from x in resp1.table1
        join y in resp2.table2 on x.fields equals y.fields
        join z in resp3.table3 on x.fields equals z.fields
        select
        new {y.fields, y.fields1, x.fields2, x.fields3, x.fields4, z.fields5, z.fields6};

依此类推...但首先检查您是否真的需要三重连接!

于 2012-09-19T04:10:40.990 回答
0
var z = from x in resp1.table1
        join y in resp2.table2 on x.fields equals y.fields
        join z in resp3.table3 on x.fields equals z.fields
        select
        new {y.fields, y.fields1, x.fields2, x.fields3, x.fields4, z.fields5};
于 2012-09-19T04:14:11.033 回答