Object must implement IConvertible.
对象必须实现IConvertible。
sql执行结果中存在GUID的值,但对象对应字段为String,在Dapper中会报错:Object must implement IConvertible.
此时将sql中的输出结果转成varchar类型即可
SELECT CAST(GUID AS VARCHAR(50)) FROM TABLE WHERE 1=1
标签:C#,Object,报错,sql,IConvertible,implement,must From: https://www.cnblogs.com/jxw-29/p/17235275.html