Exemple #1
0
 protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior)
 {
     _txnlock.OpenReader();
     try
     {
         return(new SQLiteDataReaderED <TConn>(this.InnerCommand, behavior, txnlock: _txnlock));
     }
     catch
     {
         _txnlock.CloseReader();
         throw;
     }
 }
Exemple #2
0
        public override void Close()
        {
            InnerReader.Close();

            if (_txnlock != null)
            {
                _txnlock.CloseReader();
                _txnlock = null;
            }
        }