views:

95

answers:

1

Hi, using Subsonic v3.0.0.3 with MS SQL 2008 (10.0.2531) and have two columns in a table 'Date' and 'Time' (not DateTime columns) and when the ActiveRecord SingleOrDefault (line 14110) attempts to load the object (via a given pkid) this error is thrown;

"Object of type 'System.TimeSpan' cannot be converted to type 'System.String'."

Any idea on how to work around this? The part that fuzzles me is MS SQL doesn't have a 'Timespan' column type.

+2  A: 

Date and Time column types are not currently supported in SubSonic 3

John Sheehan
Is that on a FAQ or something somewhere? Just saying perhaps things like that should be documented somewhere.
CmdrTallen
I don't know if that's been mentioned anywhere outside of GitHub issues and blog posts. I'll see if I can add it to the docs wiki.
John Sheehan