亚音速3.0,SQLServer的默认值不起作用? [英] subsonic 3.0 , The SqlServer default value doesn't work?
本文介绍了亚音速3.0,SQLServer的默认值不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用亚音速3 T4,这是非常简单的use.But我得到一个问题在SQLSERVER now.I指定默认值2005.Then我打电话保存()在subsonic.I方法找到的默认值没有按' :T工作
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.
推荐答案
默认值不会在插入工作,因为你的对象将首先设置的值 - 无论是空或。 .. 随你。这里的答案是在对象上设置的缺省值。
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.
这篇关于亚音速3.0,SQLServer的默认值不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文