How can I get List<string> of all table names contained in a MySQL database?
I want to load a complete database into a DataSet but from my understanding it seems that MySqlDataAdapter.Fill() only operates on single tables, correct? That is what I want to use the table string collection for.
EDIT:
I look for the correct query: The following returns 59 different items despite the database only holding 3 tables:
MySqlCommand command = new MySqlCommand("SELECT table_name FROM information_schema.tables where table_type = 'BASE TABLE'", connection); var result = command.ExecuteReader();I look for C# code to parse the result of the query into a
List<string>.