Ejemplo n.º 1
0
        private void GetAllObjects(IActivateItems activator)
        {
            Gatherer g = new Gatherer(activator.RepositoryLocator);

            //We get these from the child provider because some objects (those below go off looking stuff up if you get them
            //and do not inject known good values first)
            foreach (var o in Activator.CoreChildProvider.AllExtractionInformations)
            {
                _allObjects.Add(o);
            }

            foreach (var o in Activator.CoreChildProvider.AllCatalogueItems)
            {
                _allObjects.Add(o);
            }

            var dxmChildProvider = Activator.CoreChildProvider as DataExportChildProvider;

            if (dxmChildProvider != null)
            {
                foreach (var o in dxmChildProvider.GetAllExtractableColumns(Activator.RepositoryLocator.DataExportRepository))
                {
                    _allObjects.Add(o);
                }
            }

            foreach (var o in g.GetAllObjectsInAllDatabases())
            {
                _allObjects.Add(o);
            }
        }