I have a DataTable object loaded using below code.
DataSet dataset = new DataSet();
adapter.Fill(dataset);
DataTable myDataTable = dataset.Tables[0];
I want to execute this SQL query against that DataTable object:
UPDATE myDataTable
SET Enabled = 'YES'
WHERE ID = '123';
I was able to do this using LINQ, but the requirement is to execute SQL queries against the DataTable object.
How can we achieve this?