Hi

I am migrating my application from MIcrosoft Oracle Provider
(System.Data.OracleClient) to ODP 10.0.4  (Oracle.DataAccess). and I
experiment some problems with NUMBER dbType.

According to the ODP Documentation, NUMBER should be read with the
OracleDataAdapter.GetDecimal() method and not
OracleDataAdapter.GetDouble(). With MS Provider, GetDouble works propoerly

Unfortunately, all my C# objects use double type. with MS Provider, I let
the AutoMapReader map the query result into my object properties. But with
ODP, it does not work anymore :(  Indeed, The AutoMapReader still use
GetDouble.

So, Can Ibatis convert decimal to double for me at the mapping step ? Do I
write a Custom Type Handlers  ? or is the any other solution more clever ?

Obviously, I can replace in my code all double type to Decimal type, and
add everywhere some Convert.ToDouble to avoid interface modfication but is
is quite boring.

Regards



This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

Reply via email to