Can References to "Oracle.DataAccess" AND "System.Data.OracleClient" co-exist in one application ?

  • Thread starter Thread starter Peter Kanurer
  • Start date Start date
P

Peter Kanurer

Assume I add in VisualCSharp 2005 References to

Oracle.DataAccess

AND

System.Data.OracleClient

to an application. Does this cause problems or can they co-exist in one application ?

Peter
 
I think you can, but you have to use Namespace.X when X is defined in both
namespaces (however the compiler will tell you there is an ambiguous
reference).


HTH,
Luigi.
 
Peter Kanurer said:
Assume I add in VisualCSharp 2005 References to

Oracle.DataAccess

AND

System.Data.OracleClient

to an application. Does this cause problems or can they co-exist in one
application ?

One is in the System namespace and one in in the Oracle namespace or two
different dll(s). So, you can use them both with in one application. You can
use them both in the same class if it came down to that it, but I don't know
why anyone would do it. It's either one or the other. I think you would need
the Oracle DataAccess if you needed to work with CLOB or BLOB data, as I
don't think the one in System can do that.
 
Peter said:
Assume I add in VisualCSharp 2005 References to

Oracle.DataAccess

AND

System.Data.OracleClient

to an application. Does this cause problems or can they co-exist in one application ?

They can.

But I think you are asking for problems. Use one or another.

Arne
 
Arne said:
They can.

But I think you are asking for problems. Use one or another.

And I am not talking about namespace & compile problems but
about the problem of accessing the same data through two
providers.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top