2010年6月4日
摘要: 一直以来,对于数据转换,经常用的就是Convert.ToInt32 和int.Parse 。我数据库里这个字段是 int 类型。 查询时因为要读取,model.ReachT = int.Parse(ds.Tables[0].Rows[0]["ReachT"].ToString()); 。用int.parse没有出错。但是用model.ReachT = Convert.Toint32(ds.Tabl... 阅读全文
posted @ 2010-06-04 16:54 挑战自我 阅读(113) 评论(0) 推荐(0) 编辑