Column Missing in CSV throws error when in DTO
bakes82 opened this issue · 1 comments
bakes82 commented
@Cinchoo Is it suppose to throw a missing col error if the csv doesnt have a col? EX: On the fiddler example if you add another string "Test" but dont have it in the CSV it errors with missing field.
[ChoCSVRecordField(FieldName = "Test")]
public string Test { get; set; }
Cinchoo commented
yes, if you want to ignore, parse the file, using .Configure(c => c.ThrowAndStopOnMissingField = false)