Hello,
I am using nhibernate for my OR persistence and I store a list of doubles into a table using the following mapping (where the list is embedded in another class).
<list name="Values" access="field" table="Values_double" >
<key column="variable_id"/>
<index column="no_data_values_list_index"/>
<element column="value" type="System.Double"/>
</list>
This works fine except when I try to store double.MinValue or double.MaxValue. I get an error when reloading from my DB saying:
System.OverflowException: Value was either too large or too small for a Decimal.
Which seems to be related to NHibernate storing the doubles as 'NUMERIC' values in my sqlite dBase. The conversion back seems to go broke. Any suggestions are very welcome.
Greetings, Martijn