Three level heirarchal data-linq

Posted by user326010 on Stack Overflow See other posts from Stack Overflow or by user326010
Published on 2010-05-07T08:02:59Z Indexed on 2010/05/07 8:08 UTC
Read the original article Hit count: 271

Filed under:
|
|

Hi

I have three level heirarchal data. using the statement below i managed to display two level data. I need to extend it to one more level.

Current heirachy is Modules-->Documents

I need to extend it as Packages-->Modules-->Documents

var data = (from m in DataContext.SysModules
                   join d in DataContext.SysDocuments on m.ModuleID equals d.ModuleID into tempDocs
                   from SysDocument in tempDocs.DefaultIfEmpty()
                   group SysDocument by m).ToList();

Regards Tassadaque

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about c#