开发者

Set default values in nhibernate-mapping

开发者 https://www.devze.com 2023-03-25 22:47 出处:网络
I am trying to put a default value in a mapping. When I run it says \"default\" not declared. my code is

I am trying to put a default value in a mapping. When I run it says "default" not declared.

my code is

<property name="retrycount"开发者_高级运维 column="retrycount" type="Int32" default="0" />

Is this support for nhibernate

Thank you


it is supported:

<property name="retrycount" type="Int32">
  <column name="retrycount" default="0"/>
</property>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号