A very frequently asked question in a WCF Data transfer service is how to return a DataTable/DataSet in a WCF service operation. The DataTable class is a member of the
System.Data namespace within the .NET framework class library. You can create and use a DataTable independently or as a member of a DataSet, and DataTable objects can also be used in conjunction with other .NET framework objects.
There are various possible solutions for DataTable or DataSet transferring in a WCF service; we will go through the most common ones in this recipe.
In our sample service, we will demonstrate several means to return data from a DataTable to client consumers. The sample DataTable consists of ...