It seems ScriptDom
has a complex architecture. Since there is no documentation about ScriptDom, do you know how can generate a joined query like this using ScriptDom types?
SELECT c.Title as ColumnTitle, t.Title as TableTitle, o.Title as OwnerTitle FROM info.iColumns c
JOIN info.iTables t ON c.TableRef = t.Id
JOIN info.iOwners o ON t.OwnerRef = o.Id
JOIN info.iTablesKey k ON k.TableRef = t.Id
WHERE t.DisplayIndex = 1
I want to create a simple query generator for my report builder and I don't know how to build JOIN
statements. I have checked this blog post but the generated xml for object graph is very complex!