阅读背景:

使用DBNull。不知道sqlDbType的SqlParameter值?

来源:互联网 

I'm using a SqlParameter to pass in null values to a table for various columns that are nullable. The problem is that SqlParameter looks like it defaults to nvarchar if no sqlDbType is present. This presents a problem if the actual db type is varbinary; I get an exception saying to pass in null values




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: