示例#1
0
        public void Executar(TCommand cmd)
        {
            _transactional.BeginTransaction();

            try
            {
                _commandHandler.Executar(cmd);
                _transactional.Commit();
            }
            catch
            {
                _transactional.Rollback();
                throw;
            }
        }