I have a table with column having multiple identical values which associates with other row values.
- ID HValue Limit
- 0005 0 350.00
- 0005 1 0.00
- 0005 2 350.00
- 0005 3 350.00
- 0025 0 20.00
- 0025 1 0.00
I executed the stored proc and stored these values in a DataTable object. Now I would like to write a Linq query which will get the list Collection of the values with same ID.
Like: for 0005 - 1st list [0,1,2,3] 2nd list [350,0,350,0]
I have 2 questions, 1. Is it possible to get this type of result with linq query? 2. If possible, what is the best way to write it?
Any suggestions will greatly be appreciated