Page 1 of 1

OracleParameter does not implement IDbDataParameter

Posted: Tue 22 Apr 2014 08:22
by neilhaughton
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

Re: OracleParameter does not implement IDbDataParameter

Posted: Wed 23 Apr 2014 13:24
by Pinturiccio
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.