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.
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list