private KeysRetriever BuildKeysRetriever(ColumnMappingCollection settings, Func <ColumnMapping, IColumnIdentifier> target) { var defColumns = new Collection <IColumnDefinition>(); foreach (var setting in settings) { var defColumn = setting.ToColumnDefinition(() => target(setting)); defColumns.Add(defColumn); } if (settings.Any(x => target(x) is ColumnOrdinalIdentifier)) { return(new KeysRetrieverByOrdinal(defColumns)); } else { return(new KeysRetrieverByName(defColumns)); } }
private KeysRetriever BuildKeysRetriever(ColumnMappingCollection settings, Func <ColumnMapping, string> target) { var defColumns = new Collection <IColumnDefinition>(); foreach (var setting in settings) { var defColumn = setting.ToColumnDefinition(() => target(setting)); defColumns.Add(defColumn); } if (settings.Any(x => target(x).StartsWith("#"))) { return(new KeysRetrieverByIndex(defColumns)); } else { return(new KeysRetrieverByName(defColumns)); } }
public LookupExistsAnalyzer(ColumnMappingCollection keys) { Keys = keys; }
public ReferenceAnalyzer(ColumnMappingCollection settings) { this.settings = settings; }
public LookupExistsAnalyzer(ColumnMappingCollection settings) { this.settings = settings; }
public LookupMatchesAnalyzer(ColumnMappingCollection keys, ColumnMappingCollection values, IDictionary <IColumnIdentifier, Tolerance> tolerances) : base(keys) { Values = values; Tolerances = tolerances ?? new Dictionary <IColumnIdentifier, Tolerance>(); }
public LookupMatchesAnalyzer(ColumnMappingCollection keys, ColumnMappingCollection values) : this(keys, values, null) { }
public LookupMatchesAnalyzer(ColumnMappingCollection keys, ColumnMappingCollection values) : base(keys) { Values = values; }