internal ConceptSchemeUtility(ConceptSchemeTypes conceptSchemeType, string agencyId, string language, Header header, string outputFolder, DIConnection DIConnection, DIQueries DIQueries) : base(agencyId, language, header, outputFolder) { this._conceptSchemeType = conceptSchemeType; this._diConnection = DIConnection; this._diQueries = DIQueries; if (string.IsNullOrEmpty(language)) { this.Language = this._diQueries.LanguageCode.Substring(1); this._multiLanguageHandlingRequired = true; } else { if (this._diConnection.IsValidDILanguage(this._diQueries.DataPrefix, language)) { this.Language = language; this._multiLanguageHandlingRequired = false; } else { this.Language = this._diQueries.LanguageCode.Substring(1); this._multiLanguageHandlingRequired = false; } } }
public static List<ArtefactInfo> Generate_ConceptScheme(SDMXSchemaType schemaType, ConceptSchemeTypes conceptSchemeType, string agencyId, string language, Header header, string outputFolder, DIConnection DIConnection, DIQueries DIQueries) { List<ArtefactInfo> RetVal; ConceptSchemeUtility ConceptSchemeUtility; RetVal = null; ConceptSchemeUtility = null; try { ConceptSchemeUtility = new ConceptSchemeUtility(conceptSchemeType, agencyId, language, header, outputFolder, DIConnection, DIQueries); RetVal = ConceptSchemeUtility.Generate_Artefact(); ConceptSchemeUtility.Save_Artefacts(RetVal); } catch (Exception ex) { RetVal = null; throw ex; } finally { } return RetVal; }