Hello,
I'm testing LLBLGen Pro version 2.6 Final, but I have a problem with the Numeric datatype.
I have a Firebird 2.0 database with a **Con ** Table and a **Saldo **field type Number(18,4).
This field is mapped by LLBLGen as Decimal (lenght 8, precision 8, scale 4).
So when I try to set values to this field that have more than 8 digits lenght I get an overflow error
Example:
**EntityClasses.ConEntity con = new EntityClasses.ConEntity(123); **
con.Saldo = 1234567.89; //try this:
con.Saldo -= 1; //or this, when the original value was 1234568.89
and you get the next error:
**"The precision of value '1234567.8900' is larger than the precision of the field: '8' and will cause an overflow in the database.
Nombre del parámetro: Saldo"
**
but if I use the next SQL statement directly to db, I dont get errors.
**Update Con Set Saldo = 1234567.89
Where ID = 123;
**
I guess the problem is the mapping "lenght 8", but LLBLGen put that value,
so how can I change it?
I already try with Decimal(18,4) or Numeric(16,4) and I get the same error.
My database have a lot of fields of Numeric datatype, so its impossible to change all fields to another type.
thanks,
David Sanginés