Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug Report - ExecSprocReader
Message
De
20/10/2004 17:03:08
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Bug Report - ExecSprocReader
Divers
Thread ID:
00953148
Message ID:
00953148
Vues:
56
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;
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform