subsonic / SubSonic-3.0-Templates

T4 Template Project for the peeps
http://subsonic.github.io/
105 stars 46 forks source link

MySQL Double type as string. #13

Open Settler opened 15 years ago

Settler commented 15 years ago

MySQL have double type. And it's not switched in GetSysType and GetDbType of MySQL.ttinclude. This is can be fixed like this: string GetSysType(string sqlType){ ... case "double": case "float": sysType="double"; break; ... }

DbType GetDbType(string sqlType){ ... case "double": case "float": return DbType.Double; ... }

TheDistantSea commented 15 years ago

I know it's an one-liner, but you can pull this from http://github.com/defacer/SubSonic-3.0-Templates/commit/7400c98c16011b23947dbe7c9bec06c22aec3a9a

:-)