/// <summary> /// Upgrade from SSIS 2008 to 2012/2014 /// </summary> /// <param name="pipelineVersion">components pipeline verion</param> public override void PerformUpgrade(int pipelineVersion) { try { if (LineageMapping.NeedsMapping()) { InitProperties(false); foreach (ColumnConfig config in _IsagCustomProperties.ColumnConfigList) { if (string.IsNullOrEmpty(config.CustomId)) { config.CustomId = Guid.NewGuid().ToString(); } AddInputColumnCustomProperty(config.InputColumnName, config.CustomId, LineageMapping.IdPropertyName); } LineageMapping.UpdateInputIdProperties(this.ComponentMetaData, _IsagCustomProperties); _IsagCustomProperties.Save(this.ComponentMetaData); } DtsPipelineComponentAttribute attr = (DtsPipelineComponentAttribute)Attribute.GetCustomAttribute(this.GetType(), typeof(DtsPipelineComponentAttribute), false); ComponentMetaData.Version = attr.CurrentVersion; } catch (Exception ex) { bool cancel = false; this.ComponentMetaData.FireError(0, "DataConverter Upgrade", ex.ToString(), "", 0, out cancel); throw (ex); } }