General information
Category:
The Mere Mortals .NET Framework
Title:
Bug Report - ExecSprocReader
class: mmDataAccessBase
issue: Closing the connection closes the reader as well.
public virtual IDataReader ExecSprocReader(string sprocName, IDbDataParameter[] dataParams){
IDbCommand cmd = this.ConfigureSproc(sprocName, dataParams);
IDataReader dr = cmd.ExecuteReader(CommandBehavior.CloseConnection);
cmd.Connection.Close(); <-------Here -------------------
return dr;
}
Regards,
Nick Chakarov;
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only