public IEnumerable <DBObject> GetSchemaTables(IDataStore dstore) { AdsConnection connection = (AdsConnection)GetConnection(); connection.Open(); using (IQueryData columns = dstore.ExecuteCommands.ExecuteCommandQuery(GetCommand("EXECUTE PROCEDURE sp_GetColumns(null, null, null, null)"), this)) { foreach (string table in connection.GetTableNames()) { yield return(LoadObjectInfo(dstore, table, columns)); } } }