Check out example codes for "c# mysql select into datatable". It will help you in understanding the concepts better.

Code Example 1

MySqlCommand cmd = new MySqlCommand(query, connection);
DataTable dt = new DataTable();
dt.load(cmd.ExecuteReader());
return dt;

Learn ReactJs, React Native from akashmittal.com