c#:无法将类型为“System.DBNull”的对象强制转换为类型“System.String”

解决办法:

使用转换函数即可:

Convert.ToString(要转换的值);

原文地址:https://www.cnblogs.com/KeenLeung/p/3147936.html