liuyun521 / mybatisnet

Automatically exported from code.google.com/p/mybatisnet
0 stars 0 forks source link

TimeSpanTypeHandler.cs 有问题。 #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
    Gmij    2011-06-20 Edit
    从sql 2005开始,sql数据库支持Time类型,对应CLR中的TimeSpan,如果按原来的代码,将会引发类型转换错误。
    增加对值的判定, 如果dateReader.GetValue(index)的值是TimeSpan,直接返回

附件中的文件,是已修改的TimeSpanTypeHandler.cs,请查阅

Original issue reported on code.google.com by ygaSo...@gmail.com on 20 Jun 2011 at 7:30

Attachments: