Open adaml881 opened 6 months ago
This if-statement is incorrect and causing field mapping errors.
if (columnMappings == null || columnMappings.Count == 0) { foreach (KeyValuePair<string, string> keyValuePair in columnMappings) bcp.ColumnMappings.Add(keyValuePair.Key, keyValuePair.Value); }
I think it should be
if (bcp.ColumnMappings == null || bcp.ColumnMappings.Count == 0) { foreach (KeyValuePair<string, string> keyValuePair in columnMappings) bcp.ColumnMappings.Add(keyValuePair.Key, keyValuePair.Value); }
https://github.com/Cinchoo/ChoETL/blame/994986e883174324d0d1f6a9147e1174f85a7fa0/src/ChoETL/Common/ChoUtility.cs#L2254
Yes, it is bug, will be appling fix.
This if-statement is incorrect and causing field mapping errors.
I think it should be
https://github.com/Cinchoo/ChoETL/blame/994986e883174324d0d1f6a9147e1174f85a7fa0/src/ChoETL/Common/ChoUtility.cs#L2254