I have this part of project, written using MS SQL:
selectCommand.CommandText = "SELECT * FROM Table1";
var data_ar = selectCommand.ExecuteReader().Select(r =>
new
{
Value1 = r["Value1"].ToString(),
Value2 = r["Value2"].ToString(),
})
.ToList();
How can i change this code to make it work with MySqlConnection instead of SqlConnection?