title: what is the best way to retrieve a datatable from WCF without using Data transfer objects
body: <p>I am new to WCF and from what I have researched I understand it's not a good thing to return a dataset or a datatable from a WCF service. I also understand that the best way is convert your data into a DTO and then pass it on to the client.</p>
  
  <p>The problem I am facing is that I need to create some reports that can have different number of columns and I only want to create one method in my web service to retrieve the data based on query name that will be supplied as a parameter. This makes it difficult for me to create a  object class and map it to my data table as the number/type of columns would be different for each report.</p>
  
  <p>What is the best way to achieve this? I have gone through a number of blogs but still haven't found a good way of doing this.</p>
  
  <p>EDIT : I tried returning a datatable and got some errors which lead me to the blogs that explained why datasets/datatables were not a good idea for returning data in webservices. </p>