/// <summary> /// List all tables in the database. /// </summary> /// <returns>List of strings, each being a table name.</returns> public List <string> ListTables() { List <string> tableNames = new List <string>(); DataTable result = Query(PostgresqlHelper.LoadTableNamesQuery()); if (result != null && result.Rows.Count > 0) { foreach (DataRow curr in result.Rows) { tableNames.Add(curr["tablename"].ToString()); } } return(tableNames); }