Error with Subsonic attempting to convert Timespan to String

会有一股神秘感。 提交于 2019-12-11 15:23:48

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/1448626/error-with-subsonic-attempting-to-convert-timespan-to-string

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!