markrendle / Simple.Data

A light-weight, dynamic data access component for C# 4.0
MIT License
1.33k stars 303 forks source link

Inserting a TimeSpan value in a column of type TIME in MySql causes an exception #368

Open andy01pr opened 9 years ago

andy01pr commented 9 years ago

Inserting a TimeSpan value in Mysql in a column with data type TIME causes the following exception: MySqlException "Only TimeSpan objects can be serialized by MySqlTimeSpan". I narrowed down to the class TypeHelper where the property BaseTypes does not have a TimeSpan type and thus the TimeSpan value is converted to a string.