[Mono-list] SybaseClient Bug ?

MFang fangwancong at 163.com
Mon Jun 1 21:02:37 EDT 2009


using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

Database db = db = DatabaseFactory.CreateDatabase("MyDB");
DbCommand dbCommand = db.GetStoredProcCommand("ptest");
using (IDataReader reader = db.ExecuteReader(dbCommand))
 {
     while (reader.Read())
      {
                 Console.WriteLine(string.Format("ID:{0} Name:{1}",
reader["ID"], reader["Name"]));
      }
      //reader.Close();  //No Error
}    //Here Error

Error form :
private void Dispose(bool disposing)
{
    if (!this.disposed)
    {
        if (disposing)
        {
            this.schemaTable.Dispose();
            this.Close();
        }
        this.disposed = true;
    }
}

 
  Mono.Data.SybaseClient Bug? 

-- 
View this message in context: http://www.nabble.com/SybaseClient-Bug----tp23824858p23824858.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list