Hi guys,
Have used linq for some basic stuff before but want to use it for the following problem and am not sure how to tackle it.
I have a single table, and I want to build lots of objects based on it.
So..
Data:
Location | Month | Price
London | DEC | 1.99
London | DEC | 2.99
London | NOV | 1.99
Essex | JAN | 1.99
Needs to build 2 Location objects with London and essex, with 2 month objects inside london and a price object inside the month.
Not sure if I explained that well.
Thanks
Have used linq for some basic stuff before but want to use it for the following problem and am not sure how to tackle it.
I have a single table, and I want to build lots of objects based on it.
So..
Data:
Location | Month | Price
London | DEC | 1.99
London | DEC | 2.99
London | NOV | 1.99
Essex | JAN | 1.99
Needs to build 2 Location objects with London and essex, with 2 month objects inside london and a price object inside the month.
Not sure if I explained that well.
Thanks
Comment