So I'm really trying to build dynamic reports in C# based off of multiple stored procedures across multiple databases and then join the results.
Here is an example:
List 1:
{ monthyear = '032016', submitted = '56', approved = '27'},
{ monthyear = '042016', submitted = '67', approved = '30'}
List 2
{ monthyear = '032016', returned = '17'},
{ monthyear = '042016', returned = '22'}
Knowing that the "key" column is dynamic and the results built into each list are dynamic. I am however able to retrieve a string representation of the key column that joins the lists.
The result I am looking for is:
{ monthyear = '032016', submitted = '56', approved = '27', returned = '17'},
{ monthyear = '042016', submitted = '67', approved = '30', returned = '22'}
Both list are stored as an IEnumerable<object>
with an intended result of IEnumerable<object>
.
Is there a way to join these, not concat, without looping?