/// <summary>Delete all tables</summary> public void EmptyDataStore() { bool openForReadOnly = true; if (connection != null) { openForReadOnly = connection.IsReadOnly; } // Don't iterate through the table or TableNames properties directly, // since the deletion operation can mess up the iterator. string[] tableNames = TableNames.ToArray(); foreach (string tableName in tableNames) { DeleteDataInTable(tableName); } Open(openForReadOnly); }