问题
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