How to cast
System.Data.Linq.Table to System.Data.DataTable
DemoDBDataContext context = new DemoDBDataContext();
DataSet ds = new DataSet();
var query = context.Customers;
ds.Tables[0] = query;
How to do that? the assignment
ds.Tables[0] = query;
It throws
Property or indexer 'System.Data.DataTableCollection.this[int]' cannot be assigned to it is read only.