I have got the following SQL-Table:
---------------------------------------------------
| ID | Line1 | Line2 | Line3 | Line4 | Line5 |
---------------------------------------------------
| 1 | Software | Citrix | XenApp | Null | Null |
---------------------------------------------------
| 2 | Software | Citrix | XenApp | Null | Null |
---------------------------------------------------
I used this code in order to group it by Line3:
var KategorienLine3 = result.GroupBy(x => x.Line3).ToList();
In which result represents the list including the 2 entries. Now this grouping results in this output:
[0] -> Key = XenApp
[1] -> Key = XenApp
But I don't have access to Line2. I would like to include it in the result. How can I do that, so that I have access to that as well? It don't want to group by it!! I just want to have it in the result.
Thats what it gives me after the grouping. I want to include Line2 as well.