Ejemplo n.º 1
0
        public void Add(IColumnIdentifier indentifier, ITransformationInfo transfo)
        {
            var transformer = factory.Instantiate(transfo);

            transformer.Initialize(transfo.Code);
            if (cacheTransformers.ContainsKey(indentifier))
            {
                throw new NBiException($"You can't define two transformers for the same column. The column {indentifier.Label} has already another transformer specified.");
            }
            cacheTransformers.Add(indentifier, transformer);
        }
Ejemplo n.º 2
0
        public void Add(int columnIndex, ITransformationInfo transfo)
        {
            var transformer = factory.Instantiate(transfo);

            transformer.Initialize(transfo.Code);
            if (cacheTransformers.ContainsKey(columnIndex))
            {
                throw new NBiException($"You can't define two transformers for the same column. The column with index '{columnIndex}' has already another transformer specified.");
            }
            cacheTransformers.Add(columnIndex, transformer);
        }