public override void Emit(SsisEmitterContext context) { try { _forLoop = (DTS.ForLoop)context.ParentContainer.AppendExecutable(Moniker); context.ParentContainer.ProcessTaskBinding(this); _forLoop.Name = Name; _forLoop.TransactionOption = (DTSTransactionOption)Enum.Parse(typeof(DTSTransactionOption), TransactionMode); _forLoop.AssignExpression = _countingExpression; _forLoop.EvalExpression = _loopTestExpression; _forLoop.InitExpression = _initializerExpression; base.Emit(context); } catch (DtsException e) { if (e.ErrorCode == -1073659647) { MessageEngine.Trace(AstNamedNode, Severity.Error, "V1050", "Attempted to reuse the name '{0}' within an SSIS package, which is illegal. Use a unique name.", Name); } else { throw; } } }
public override void Emit(SsisEmitterContext context) { try { _forLoop = (DTS.ForLoop)context.ParentContainer.AppendExecutable(Moniker); context.ParentContainer.ProcessTaskBinding(this); _forLoop.Name = Name; _forLoop.TransactionOption = (DTSTransactionOption)Enum.Parse(typeof(DTSTransactionOption), TransactionMode); _forLoop.AssignExpression = _countingExpression; _forLoop.EvalExpression = _loopTestExpression; _forLoop.InitExpression = _initializerExpression; base.Emit(context); } catch (DtsException e) { if (e.ErrorCode == -1073659647) { MessageEngine.Trace(AstNamedNode, Severity.Error, "V1050", "Attempted to reuse the name '{0}' within an SSIS package, which is illegal. Use a unique name.", Name); } else { throw; } } }