I have a simple class with only one attribute.
If this attribute is a "simple" type (String, Int, DataSet, ...), I
can create an instance of this class.
If this attribute is a Database object like an OleDbConnection or an
OracleConnection, the instance cannot be created.
I have the following error code : 8013130A
Somebody can help me?
>-----Original Message-----
>I have a simple class with only one attribute.
[quoted text clipped - 8 lines]
>Somebody can help me?
>.
Here is a working sample :
using System;
using System.Data;
using System.Data.OracleClient;
namespace ComTest
{
public class Test
{
private DataSet dataSet;
public Test()
{
dataSet = new DataSet();
}
}
}
An now sample that doesn't work :
using System;
using System.Data;
using System.Data.OracleClient;
namespace ComTest
{
public class Test
{
private OracleConnection oracleConnection;
public Test()
{
oracleConnection = new
OracleConnection();
}
}
}