天天看点

SqlParameter Value=0 导致的null

微软官方的文档是说,value这个objec 来推断是什么sqldbtype。设为0

就给推断出null了,所以先把它装箱为object.convert.toint32皆可