The following problem is running on a web API application in ASP.NET MVC 4 connected in an SQL Server 2008 R2 by Fluent NHibernate.
So I have this form that can store a decimal number that can hold a value to 15 integers and 14 decimals places. The database column is defined as decimal(29,14) so as the mapped property Map((x) => x.Factor).Column("FACTOR").Precision(29).Scale(14).Not.Nullable().
The data of that field should hold any value in this mask 999999999999999.99999999999999, but it does't. That number causes an OverflowException. I believe that is because of the number limitation, described in its reference: C# and SQL Server.
I really don't understand this notation, -7.9x1028 to 7.9x1028 (from the C# reference) or -10^38 +1 to 10^38 -1 (from the SQL Server reference), but I think that what limits the number are the SQL Server decimals, because the error is on the Transaction commit action. The ViewModel shows the right number.
What precision/scale do I need to set on the table column in order to accept the application value?