var v = from p in db.tableName
select new
{
ParentID = p.SerialNo,
child = from c in db.tableName
where c.Parent == p.SerialNo select
new
{
ChildID = c.SerialNo,
ParentID = c.Parent
}
};