I need a C# method that can pivot a DataTable/IDataReader object where the source table contains a composite key.
I wanted to use this: http://weblogs.sqlteam.com/jeffs/articles/5091.aspx
however it only works for a single key column.
No SQL. It must be C#.
Unfortunately I do not know enough about LINQ to determine if this is a viable solution. I have opted to do my pivot logic at the database level. I’ll keep my eyes open.