Your syntax error is obvious:
List<string>() = MyClass...
You need to name the variable, and get rid of the brackets:
List<string> myList = MyClass...
But... as debasish suggested, passing an SQL command as text is very dangerous: it exposes you to SQL Injection if you aren't very, very careful - and that can delete your database!