I have a table data as below which I will get it populated in a DataTable.
EmpID EmpName
1 John
2 Doe
3 Mary
I want each of this record to be converted into a List (with the column name concatenated with its value for each row), for eg. the list will have 3 items as below:
EmpID: 1 Empname: John
EmpID: 2 Empname: Doe
EmpID: 3 Empname: Mary
Can someone please tell me how this can be achieved using LinQ?