开发者

subsonic timestamp issue on insert record

开发者 https://www.devze.com 2022-12-08 08:08 出处:网络
My problem is about the timestamp column in one of my database tables. This field is required because sqlserver automatically generates it. Since this column is required subsonic included it in the in

My problem is about the timestamp column in one of my database tables. This field is required because sqlserver automatically generates it. Since this column is required subsonic included it in the insert query..

im using subsonic 3.0

info.Save();

error message:

C开发者_C百科annot insert an explicit value into a timestamp column. Use INSERT with a column list to exclude the timestamp column, or insert a DEFAULT into the timestamp column.


Have a look at the following answer for a workaround for this:

Subsonic: How to exclude a table column so that its not included in the generated SQL query

0

精彩评论

暂无评论...
验证码 换一张
取 消