Hello
I am using LLBL 3.0, with Oracle.
After generaiting the classes, and starting the application, at some point when
a value from the database is needed, I am getting the folowing error message:
Cannot unbox .. to "decimal"
here is where the error occurs:
public virtual System.Decimal ARBFI_QTACIO
{
get { return (System.Decimal)GetValue((int)ARBO_FINAFieldIndex.ARBFI_QTACIO, true); }
set { SetValue((int)ARBO_FINAFieldIndex.ARBFI_QTACIO, value); }
}
This is a field from my entity, and when the :
return (System.Decimal)GetValue((int)ARBO_FINAFieldIndex.ARBFI_QTACIO, true);
is executed, there is where this error occurs.
In the database, this field is of type: NUMBER (15,5), the Generated .Net types is Double. I made a type converter to change it to Decimal.
I think that for the code to work fine, it would have to return something like this:
return (System.Decimal)[b](int)[/b]GetValue((int)ARBO_FINAFieldIndex.ARBFI_QTACIO, true);
Could you please help with some tips?
Thank you