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(); }
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; } }
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); } }