public override void UpdateForEachInputs(IList <Tuple <string, string> > updates) { if (updates != null) { foreach (Tuple <string, string> t in updates) { // locate all updates for this tuple Tuple <string, string> t1 = t; var items = InputMappings.Where(c => !string.IsNullOrEmpty(c.InputColumn) && c.InputColumn.Equals(t1.Item1)); // issues updates foreach (var a in items) { a.InputColumn = t.Item2; } if (TableName == t.Item1) { TableName = t.Item2; } if (BatchSize == t.Item1) { BatchSize = t.Item2; } if (Timeout == t.Item1) { Timeout = t.Item2; } } } }
public override IList <DsfForEachItem> GetForEachInputs() { var items = new[] { BatchSize, Timeout, TableName }.Union(InputMappings.Where(c => !string.IsNullOrEmpty(c.InputColumn)).Select(c => c.InputColumn)).ToArray(); return(GetForEachItems(items)); }