天天看點

SqlParameter Value=0 導緻的null

微軟官方的文檔是說,value這個objec 來推斷是什麼sqldbtype。設為0

就給推斷出null了,是以先把它裝箱為object.convert.toint32皆可