DbDataReader with DbTransactions
- by Gustavo Paulillo
Its the wrong way or lack of performance, using DbDataReader combinated with DbTransactions? An example of code:
public DbDataReader ExecuteReader()
{
try
{
if (this._baseConnection.State == ConnectionState.Closed)
this._baseConnection.Open();
if (this._baseCommand.Transaction != null)
…