public List<TableInfo> LoadTables(string databaseName) { this.Connect(); List<TableInfo> tables = new List<TableInfo>(); foreach (MyMeta.Table table in _root.Databases[databaseName].Tables) { string tablename = table.Name; //if (Array.IndexOf(this.ignoreDatabaseName, dbname) != -1) // continue; TableInfo item = new TableInfo(); item.RawName = tablename; //item.Loader = this; tables.Add(item); } return tables; }
private void LoadTables() { if (_tablesLoaded) return; loader.Connect(); this.tables = new List<ITableInfo>(); foreach (MyMeta.Table table in loader.Root.Databases[this.Name].Tables) { string tablename = table.Name; //if (Array.IndexOf(this.ignoreDatabaseName, dbname) != -1) // continue; ITableInfo item = new TableInfo(this); item.RawName = tablename; item.Schema = table.Schema; item.Description = table.Description; this.tables.Add(item); } _tablesLoaded = true; }