ToEntityList 不支持以 Tab 分隔的 csv 文件
compass-yan opened this issue · comments
compass commented
csv 文件中不是按照列来分隔,而是用 tab 分隔的整行文字。
Weihan Li commented
你可以试一下指定 CSV 分隔符为 \t
CsvHelper.CsvSeparatorCharacter = '\t';
Weihan Li commented
2.0 版本开始单个方法可以指定 CsvOptions
,通过方法参数指定 option 中的 SeparatorCharacter
可以不用修改默认配置