Hi Samparh;
No, not that I have been able to code or have read on any Microsoft documentation. The big problem is that Linq to SQL and Linq to Entity Framework does not have any conversion between IQueryable / IEnumerable to a data table and therefore the above code is need to do that and the non supporting function of a Pivot Table method in the query language.
Fernando (MCSD)
If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects
and unknown namespaces.