NHibernate 3.0 rounding a decimal to 5 decimal places - why?

后端 未结 2 1849
你的背包
你的背包 2021-01-05 07:53

All,

We were using NHiberate 2.1 where we are storing decimal values (exchange rates) e.g. 123.1234567 to 7 decimal places

We are mapping the type using defa

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-05 08:43

    This solution unfortunately doesn't work if you have to specify default value that can be set on the column tag only.

    
      
    
    

    You have to move everything to the column tag to make it work.

    
      
    
    

提交回复
热议问题