Hi All
I'm using SF in an Oracle environment, which converts all numeric values returned from the database into a. Net decimal type. Many times I want to use the value as an int, so I set the BOM to use a custom type of "int" which generates the following code...
return (int)this.CurrentRow["OBJECTID"];
which causes a runtime cast violation (i.e. unboxing from a decimal to an int is not allowed.)
If instead, BOM would generate the following...
return (int)((decimal)this.CurrentRow["OBJECTID"]);
all would be well.
I'd like BOM to generated custom type fields using the following template...
return (custom-type)((native-db-type)this.CurrentRow[fieldName]);
Thanks!