c# - Null Value Found. You must specify a NullValueAttribute -
i'm using filehelpers library import , process spreadsheet. i'm having problem couple of properties of entity. added [fieldnullvalue(null)]
attribute both properties had no effect. still same error. did miss something?
[fieldtrim(trimmode.both)] [fieldconverter(typeof(customdatetimeconverter))] [fieldnullvalue(null)] private datetime? _estduedate; [fieldoptional()] [fieldnullvalue(null)] private int? _id;
update: went ahead , set default values in attribute [fieldnullvalue(typeof(datetime), "2000-1-1]
when send service call write database checked field , set null if it's default date not optimal solution it's not overhead. can deal default value id being 0 indicates service it's new record anyway
Comments
Post a Comment