Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug Report - ExecSprocReader
Message
From
20/10/2004 17:03:08
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Bug Report - ExecSprocReader
Miscellaneous
Thread ID:
00953148
Message ID:
00953148
Views:
55
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
Map
View

Click here to load this message in the networking platform