OracleParameter does not implement IDbDataParameter

OracleParameter does not implement IDbDataParameter

Postby neilhaughton » Tue 22 Apr 2014 08:22

We're trying to use the dotNet For Oracle libraries with our legacy code to replace the Microsoft System.Data.Oracle code. We've tried both the Express and Pro trial versions, and in both the C# compiler reports that the OracleParameter class does not support the IDbDataParameter interface, even though the documentation states that it does.

Can you explain this? It's a show-stopper for us, because our code connects to a number of different database systems, and uses interfaces throughout.

TIA
neilhaughton
 
Posts: 1
Joined: Tue 22 Apr 2014 07:51

Re: OracleParameter does not implement IDbDataParameter

Postby Pinturiccio » Wed 23 Apr 2014 13:24

The OracleParameter class implements IDbDataParameter. The following code can be compiled and run:
Code: Select all
static void Main(string[] args)
{
    System.Data.IDbDataParameter par = new Devart.Data.Oracle.OracleParameter();
    par.Scale = 5;
    par.Size = 10;
    par.Precision = 8;
}


neilhaughton wrote:C# compiler reports that the OracleParameter class does not support the IDbDataParameter interface

Please create and send us a small test project which reproduces the issue.
Pinturiccio
Devart Team
 
Posts: 1891
Joined: Wed 02 Nov 2011 09:44


Return to dotConnect for Oracle