ABP 事物回滚问题

                using (var uow = _unitOfWorkManager.Begin(System.Transactions.TransactionScopeOption.RequiresNew))
                {
                    await _logManager.PushLogRecord(new PushLog()
                    {
                        PushOperationOrderID = id,
                        OperationalData = "",
                        OperatingUser = AbpSession.UserId.ToString(),
                        OperationalFeedbackStatus = "Erorr",
                        OperationalFeedbackMsg = ex.Message,
                        OperatingTime = DateTime.Now,
                        Id = new Guid()
                    });
                    _unitOfWorkManager.Current.SaveChanges();
                    await uow.CompleteAsync();
                }

 

posted @ 2022-07-13 15:04  林小强  阅读(309)  评论(0编辑  收藏  举报