I want to display a table of data. Each row is an instance of my class "Fruit", each column is a date.
Sort of like this:
| 01/01/2016 | 02/01/2016 | 03/01/2016 | 04/01/2016 | 05/01/2016 | 06/01/2016 | 07/01/2016 | 08/01/2016 |
Apple | 123 | 456 | 789 | 987 | 654 | 321 | 123 | 456 |
Orange | 789 | 987 | 654 | 321 | 123 | 456 | 789 | 987 |
I can store the data however is needed, but both the number of columns and rows is variable.
My hope is that the simplest solution is that I store the data as a Dictionary<DateTime, int> (or perhaps as Dictionary<string, int>) as a child property of Fruit, and set a MappingName along the lines of "FruitDict[01/01/2016]" when adding a new column to display that particular date.