user143617
user143617

Reputation:

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

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.

Upvotes: 1

Views: 366

Answers (1)

user1151
user1151

Reputation:

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.

Upvotes: 4

Related Questions