Im using LLBLGEN against both Oracle and SQLServer.
In my databases, I have a lot of numeric fields like this:
**SQL Server DDL: ACTION_ID numeric(10, 0),
Oracle DDL: ACTION_ID NUMBER(10), **
When generated, the corresponding entity has a property ActionId of type:
SQL Server DAL generic project: decimal
Oracle DAL generic project: long
Of course, I have to pick one generic DAL to use (I use the Oracle one), and when I try to access a SQLServer database, the code throws an exception accessing (eg) the ActionId property.
At the moment, I am manually subclassing all entities and writing my own property accessors that use the 'Convert.ChangeType' function to convert to long.
I'm in control of the details of this database, so I have leeway to mess around with the exact details of the field type, if this will make it possible to arrive at values that support a similar range of numbers in both databases, and result in the same .NET type of the corresponding property. Does anyone know what scale/precision/dbtype I should use to arrive at the same property type for both databases?
Even if the field types used dont support exactly the same range, that wouldnt be a big deal.