We have a solution in VS2010. In some projects we have a dataset. All datasets contains more then 1 DataTables and tableAdapters. The solution was developed using SYSTEM.DATA.ORACLECLIENT. Now we want to convert to ODP.net and we have to use ORACLE.DATAACCESS.CLIENT. We did on forums how to do this. So we have already done : - References "SYSTEM.DATA.ORACLECLIENT" on project levels are removed. - References "ORACLE.DATAACCESS" are added. - All "Using SYSTEM.DATA.ORACLECLIENT;" are changed into "using Oracle.DataAccess.Client;" - In some connectionstrings we removed "Unicode=true" - We did NOT do anything yet with adding BindingName = true in the OracleCommand - We did NOT do anything yet with changing dbtypes like VarChar, VarNumeric, ...
I get no build errors but when running the solution I get an error about "Value does not fall within the expected range".
Now I have the feeling that my datasets are not 100% converted to ODP.net. So I need some help.
How to check or indeed convert datasets to OPD.net (Oracle.DataAccess.Client) ? What about properties like "Hierarchical Update", "DeleteDBDirectMethods", ... A dataset is represented by 4 files : .cs, Designer.cs, .xsc and .xss. The code in these file seems ok : I mean I see Oracle.DataAccess.Client.
Who can help me ?
I followed the advice given in this post on the Oracle forums:
This worked for me - open the XSD using the XML (Text) editor, then find this line:
Change it to this:
When you rebuild, all code in the
.Designer.cs
file will be updated to useOracle.ManagedDataAccess
.