views:

148

answers:

1

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.

+4  A: 

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.

Rob Conery