public static List<string> GetXXX()
{
List<string> lstXXX = new List<string>();
string sql = "SELECT data FROM table ORDER BY id ASC";
MySqlConnection conn = Database.MakeConnection();
MySqlCommand getAllXXX = new MySqlCommand(sql, conn);
DbDataReader reader = getAllXXX.ExecuteReader();
while (reader.Read())
{
lstXXX.Add(reader["data"].ToString());
}
return lstXXX;
}