a.Id,a.code /master
b.Id.b.code,b.aId,c.Id /detail
c.Id,c.code / detail of detail
我将与linq一起加入这三个表并将其显示在网格中。我怎么能这样做?
答案 0 :(得分:1)
var query = from recordA in context.TableA
join recordB in context.TableB
on recordA.Id equals recordB.aId
join recordC in context.TableC
on recordB.cId equals recordC.Id
select new
{
// whatever columns are appropriate
};