我试图在映射中放入默认值。当我运行它说“默认”未声明。
我的代码是
<property name="retrycount" column="retrycount" type="Int32" default="0" />
这是对nhibernate的支持吗
谢谢
最佳答案
它支持:
<property name="retrycount" type="Int32">
<column name="retrycount" default="0"/>
</property>
关于.net - 在nhibernate映射中设置默认值,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/6937147/