yellowfeather / DbfDataReader

DbfDataReader is a small fast .Net Core library for reading dBase, xBase, Clipper and FoxPro database files
MIT License
134 stars 61 forks source link

Empty Date give Exception #155

Open LiteLessomoroff opened 2 years ago

LiteLessomoroff commented 2 years ago

Describe the bug Error happened on dbf table init, in constructor, where exists date field and it do not contains date(empty). Before adding date column(which may be empty) in dbf file, it worked fine.

To Reproduce Steps to reproduce the behavior: 1) Create dbf which contains field date type and set empty value to this 2) Initialize DbfTable using (var dbfTable = new DbfTable(dbfPath, Encoding.UTF8))// it must fall

Expected behavior Change mapping to DateTime?(or type which using in this operation with ? - nullable) - if possible or set it to default date value