I have a specific requirement on LINQ reporting engine, where I can execute the SQL query against data base and get the results in Dataset format. Here is the sample code I used for generating the template using dataset.
<<foreach [in ds.Person]>>
<<foreach [in ds.City]>>
But in general, List object has more advantages in C# over the Dataset, since List object has more extension methods to query the objects. But since my data is in Dataset, I even would like to use the extension methods offered by List.
For testing I tried <<[ds.Person.Count()]>> in template, It works well. So I taught Datatable is acting like a IEnumarable object. So Linq Reporting engine is considering List and Datatable in the same manner at runtime, Is that correct?
I would like to know advantages of List object over the Datatable in Linq Reporting except List object properties can hold the other collection, where datatable can’t. Sorry for lengthy explanation for small thing…