Which "using" statement for OracleConnection ?

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

Peter Kanurer

I thought "using System.DataAccess.Client"

would contain all necessary stuff for

OracleConnection, OracleCommand and OracleDataReader objects

but this is not the case. They are still unresolved after adding.

Do I have to install a separate package or enable Oracle specific extensions somewhere in
VisualStudio 2005 (Express) ?

Peter
 
Peter Kanurer said:
I thought "using System.DataAccess.Client"

would contain all necessary stuff for

OracleConnection, OracleCommand and OracleDataReader objects

but this is not the case. They are still unresolved after adding.

Do I have to install a separate package or enable Oracle specific
extensions somewhere in
VisualStudio 2005 (Express) ?

The namespace aswell as the assembly of this classes is
'System.Data.OracleClient'.

Christof
 
I thought "using System.DataAccess.Client"

would contain all necessary stuff for

OracleConnection, OracleCommand and OracleDataReader objects

but this is not the case. They are still unresolved after adding.

Do I have to install a separate package or enable Oracle specific extensions somewhere in
VisualStudio 2005 (Express) ?

Peter

Hi Peter,

I am not sure the System.Data.OracleClient exists in the Visual Studio
2005 express edition but all you have to do is
add a reference to System.Data.OracleClient to your project.

Then, you can use the classes included in the namespace such as
OracleCommand:

using( System.Data.OracleClient.OracleCommand cmd = new
System.Data.OracleClient.OracleCommand() )
{
....
}

Hope this helps.

Moty
 
Back
Top