Would be nice to have a way to define a default value
POFerro opened this issue · 0 comments
POFerro commented
Hi,
When mapping from an Excel it would be nice to have a way to define a default value for properties when cell is blank.
Proposal 1- Use DefaultValueAttribute from System.ComponentModel and use the value defined as default value, this should be guarded by a property in Mapper since it would be a breaking change if people alredy use this attribute in model for other purposes.
Proposal 2- Add DefaultValue property in ColumnAttribute.
I believe this feature would help, it sure helps me on my project :).
Thanks
POFerro