When trying to persist a double with NHibernate in a MS Access database, i get the following problem.
SQL reported by NHibernate:
NHibernate: UPDATE mytable SET MyDoubleColumn = ? WHERE Number = ? AND Row = ?;@p0 = 5.8, @p4 = 161447, @p5 = 1
According to this, MyDoubleColumn should be set to '5.8', however, what gets stored in the database is '58'. The comma/dot has disappeared.
Any ideas?
This is not a culture issue, changing culture to en-US does not change the behavior.