Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用的是subsonic 3和T4,用起来很简单。但是我现在遇到了一个问题。我在sqlserver 2005中指定了默认值。然后我在subsonic中调用了save()方法。我发现默认值不起作用。
默认值不适用于插入,因为您的对象将首先设置该值 - 无论是 null 还是 ... 其他。这里的答案是在对象上设置默认值。