I am trying to put a MySQL select into a List. I found one piece of code that works, however I need to add more than one column. I want to return an array of all the data in the select.
List<string> list = (from IDataRecord r in dataReader
select (string)r["FieldName"]
).ToList();
Code was found here: Fill an array (or arraylist) from SqlDataReader