Hello,

i found a little error in the dispose implementation.
 1 . why you close active reader when you dispose the fbcommand ?

 because with the microsoft application block you can do it :

Database db = Helper.GetDB();
using (DbCommand dbCommand = db.GetSqlStringCommand("SELECT * FROM 
TOTO"))
{
 return db.ExecuteReader(dbCommand);
}

and after you can use the datareader.

this code works with others providers. The problem is that in 
fbprovider you close the datareader in the dispose method so after you 
can't use the datareader because is closed !




_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to