how to extract DataTable or DataSet from Linq Query or List.
e.g I have linq query like this
MyDBpDataContext dcSp = new MyDBpDataContext();
dcSp.myProgrammSP().ToList();
I wrote an Sp which sends a Table as result and I have code which is already using DataTable So I want to convert this result in DataTable.
The result doesn’t exist as a DataTable at any point, so if you want it as a DataTable, you have to create one and copy the data into it.
Example: