public void Execute(TransformActionDefinition transformActionDefinition) { var transformer = _transformProvider.Get(transformActionDefinition.Transformer); ITransformDataReader reader = _dataReaderRegistrations[transformActionDefinition.Source.SourceType].CreateNew.Invoke(transformActionDefinition.Source); ITransformDataWritter writter = _dataWriterRegistrations[transformActionDefinition.Target.TargetType].CreateNew.Invoke(transformActionDefinition.Target); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("start transform action: [{0}]", transformActionDefinition.Transformer); var transformObject = new TransformObject { DataReader = reader, DataWritter = writter, TransformColumnDefinitions = transformer.GetTransformColumnDefinitions(), CalculationColumnDefinition = transformer.GetCalculationColumnDefinitions() }; Execute(transformObject); Console.WriteLine(); }
public void Execute(TransformActionDefinition transformActionDefinition) { var transformer = _transformProvider.Get(transformActionDefinition.Transformer); ITransformDataReader reader = _dataReaderRegistrations[transformActionDefinition.Source.SourceType].CreateNew.Invoke(transformActionDefinition.Source); ITransformDataWritter writter = _dataWriterRegistrations[transformActionDefinition.Target.TargetType].CreateNew.Invoke(transformActionDefinition.Target); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("start transform action: [{0}]", transformActionDefinition.Transformer); var transformObject = new TransformObject { DataReader = reader, DataWritter = writter, TransformColumnDefinitions = transformer.GetTransformColumnDefinitions(), CalculationColumnDefinition = transformer.GetCalculationColumnDefinitions() }; Execute(transformObject); Console.WriteLine(); }