subsonic 3.0 , The SqlServer default value doesn't work?

*爱你&永不变心* 提交于 2020-01-14 03:46:07

问题


I used subsonic 3 with T4,It's very simple to use.But I get a problem now.I specify the default value in the sqlserver 2005.Then I called save() method in subsonic.I found the default value doesn't work.


回答1:


Default values won't work on inserts because your object will set the value first - whether it's null or ... whatever. The answer here is to set the default on the object.



来源:https://stackoverflow.com/questions/1171025/subsonic-3-0-the-sqlserver-default-value-doesnt-work

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