[英]Automapper dbNull StrongTypingException
I am using Automapper
to read an access db. 我正在使用
Automapper
读取访问数据库。 Reading strings, and getting the exception: 读取字符串并获取异常:
System.Data.StrongTypingException was unhandled by user code
HResult=-2146232021
Message=The value for column 'MapBook' in table 'tblBidSetup' is DBNull.
It is a string, so definitely nullable
. 它是一个字符串,因此绝对可以为
nullable
。 Any idea how to avoid this exception? 任何想法如何避免这种异常?
在自动映射器中使用try catch绕过错误
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.