protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior) { _txnlock.OpenReader(); try { return(new SQLiteDataReaderED <TConn>(this.InnerCommand, behavior, txnlock: _txnlock)); } catch { _txnlock.CloseReader(); throw; } }
public override void Close() { InnerReader.Close(); if (_txnlock != null) { _txnlock.CloseReader(); _txnlock = null; } }