OracleParameter does not implement IDbDataParameter

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
neilhaughton
Posts: 1
Joined: Tue 22 Apr 2014 07:51

OracleParameter does not implement IDbDataParameter

Post by 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

Pinturiccio
Devart Team
Posts: 2192
Joined: Wed 02 Nov 2011 09:44

Re: OracleParameter does not implement IDbDataParameter

Post by 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.

Post Reply