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