locked
Oracle problem with Enterprise Library 2.0 RRS feed

  • Question

  • User-1071168348 posted
    I am trying to use Enterprise Library 2.0 to access Oracle. If I use ExecuteScalar on a database command it returns the value I'm expecting. When I try to run ExecuteReader for a command with multiple results, it is returning an OracleDataReaderWrapper class. I cannot convert this to an OracleDataReader or figure out any other useful way to use this. Does anyone have any idea what's going on with that?
    Thursday, April 12, 2007 12:24 AM

All replies

  • User1879772900 posted

    Try to create a method that return IDataReader

     eg.

     using (IDataReader dr = db.ExecuteReader(dbCommand))
      {
              while (dr.Read())
                 {

       . . .

    }

    }

     

    Saturday, September 22, 2007 5:06 PM