public IDbConnection Close() { if (batcher != null) { batcher.Dispose(); } if (transaction != null) { transaction.Dispose(); } // When the connection is null nothing needs to be done - if there // is a value for connection then Disconnect() was not called - so we // need to ensure it gets called. if (connection == null) { ownConnection = false; return(null); } else { return(Disconnect()); } }
public void AfterAll() { _batcher.Dispose(); }