예제 #1
0
        public SsisSourceComponent(Transformation t, SSISEmitterContext context)
            : base(t, context)
        {
            OLEDBSource source = (OLEDBSource)t;

            InitializeConnection(source.Connection);
            SetOutputName(source.OutputPath);

            SetComponentProperties(source);
            SetParameterMapping(source.ParameterMappings, SsisPackage.CurrentPackage.DTSPackage.Variables);

            Validate();
        }
예제 #2
0
        public ISSISEmitter InstantiateEmitter(LogicalObject obj, SSISEmitterContext context)
        {
            Type ssisEmitterType = null;

            if (_pluginLoader.PluginTypesByAttribute.TryGetValue(new PhysicalIRMappingAttribute(obj.GetType()), out ssisEmitterType))
            {
                ConstructorInfo constructor = ssisEmitterType.GetConstructor(new Type[] { obj.GetType(), context.GetType() });
                ISSISEmitter objEmitter = (ISSISEmitter)constructor.Invoke(new object[] { obj, context });

                return objEmitter;
            }
            else
            {
                _message.Trace(Severity.Error, Resources.SSISObjectEmitterNotFound, obj.GetType());

                return null;
            }
        }
예제 #3
0
        public ISSISEmitter InstantiateEmitter(LogicalObject obj, SSISEmitterContext context)
        {
            Type ssisEmitterType = null;

            if (_pluginLoader.PluginTypesByAttribute.TryGetValue(new PhysicalIRMappingAttribute(obj.GetType()), out ssisEmitterType))
            {
                ConstructorInfo constructor = ssisEmitterType.GetConstructor(new Type[] { obj.GetType(), context.GetType() });
                ISSISEmitter    objEmitter  = (ISSISEmitter)constructor.Invoke(new object[] { obj, context });

                return(objEmitter);
            }
            else
            {
                _message.Trace(Severity.Error, Resources.SSISObjectEmitterNotFound, obj.GetType());

                return(null);
            }
        }