public ElementMapper(DIConnection dbConnection, DIQueries dbQueries, Dictionary<TemplateMergeControlType, MergeTableInfo> mappedTables) { this.DBConnection = dbConnection; this.DBQueries = dbQueries; this.TemplateQueries = new MergeTemplateQueries(this.DBQueries.DataPrefix, this.DBQueries.LanguageCode); this.MappedTables = mappedTables; }
/// <summary> /// Process Matched Elements for Indicator, Unit, SGDimensions, Subgroup Dimension Values,SubgroupVals, IC and Areas. /// </summary> public void ProcessMatchedElements() { try { this.TemplateQueries = new MergeTemplateQueries(this.DBQueries.DataPrefix, this.DBQueries.LanguageCode); this.ProcessMatchedIndicators(); this.ProcessMatchedUnits(); this.ProcessSubgroupDimensions(); this.ProcessSubgroupDimensionValues(); this.ProcessSubgroupVals(); this.ProcessMatchedIC(); this.ProcessMatchedAreas(); } catch (Exception ex) { ExceptionFacade.ThrowException(ex); } }