[Mono-list] Mono.Data.SybaseClient Bug

MFang fangwancong at 163.com
Sun May 31 22:13:19 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;
    }
}

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



More information about the Mono-list mailing list