ExcelMapper
ExcelMapper copied to clipboard
A way to check if all mapings succeseded?
It seems that we can map any string (column name) to a model by AddMapping, and if the provided column name is wrong, no exception is raised, and it will be just mapped to empty values.
The only way that I found to check this, is to first fetch a dynamic object, and cycle over it's properties, to check if all columns match, then to fetch to a model. I think there should a more convenient mechanism for that.
Another option is to use custom mapping through SetPropertyUsing and set a flag or whatever when a column is successfully mapped.