I have a DataSet with some DataTables that are linked together with DataRelations (classic order Header/Detail pair). Is there an easy way to denormalize the whole lot into a single DataTable with all the columns of the related tables?
The table names and columns are not known at compile time, and there may be more than two tables/relations.
Had the same problem my self, but since this question didn’t have an answer I had to write the denormalizer my self. Turned out it wasn’t all that difficult – so this is a first cut that you (or some one else who run into this problem) might be able to use/extend: