Example #1
0
        /// <summary>
        ///     Called when the component is initially added to the data flow task. Add the input, output, and error output.
        /// </summary>
        public override void ProvideComponentProperties()
        {
            this.RemoveAllInputsOutputsAndCustomProperties();

            this.ComponentMetaData.UsesDispositions = true;

            //  Add the input
            IDTSInput100 input = this.ComponentMetaData.InputCollection.New();

            input.Name = "XmlifyInput";
            input.ErrorRowDisposition = DTSRowDisposition.RD_FailComponent;

            //  Add the output
            IDTSOutput100 output = this.ComponentMetaData.OutputCollection.New();

            output.Name               = "XmlifyOutput";
            output.HasSideEffects     = false;
            output.SynchronousInputID = input.ID;
            output.ExclusionGroup     = 1;
            this.AddXmlColumn(output);

            //  Add the error output
            this.AddErrorOutput("XmlifyErrorOutput", input.ID, output.ExclusionGroup);

            foreach (CustomProperty currnetCustomProperty in
                     this.customPropertiesList.Select(customProperty => customProperty.Value))
            {
                XMLIfyCustomPropites.CreateCustomProperty(
                    this.ComponentMetaData.CustomPropertyCollection.New(),
                    currnetCustomProperty.Name,
                    currnetCustomProperty.DefaultValue,
                    currnetCustomProperty.Description,
                    currnetCustomProperty.PropertyExpressionType,
                    currnetCustomProperty.PersistState);
            }
        }
Example #2
0
 /// <summary>
 ///     The initialize.
 /// </summary>
 public override void Initialize()
 {
     this.customPropertiesList = XMLIfyCustomPropites.CreateCustomPropertyList();
     base.Initialize();
 }