sql中INT类型和C#INT类型相同,而ORACLE的NUMBER和C#INT类型不同;
用(decimal)dr["ProcessDefStatusID"];试一下!!

解决方案 »

  1.   

    因为在我的类processDefStatus中id是int,所以我使用了下面的方法
      int.parse(dr["ProcessDefStatusID"].tostring());
      这样居然好用了,请问各位大虾,这样为什么就可以了呢???
      to chump :我去try,try 你的方法
      

  2.   

    Maybe it is related to the actual data stored in the table.
    You can do some trace or debug to see what data is returned from the dr["ProcessDefStatusID"] when the error occurs.
      

  3.   

    最终的方法还是int.parse(dr["ProcessDefStatusID"].tostring());
      谢谢大家