Пример #1
0
        public async Task CompleteTransactionAsync()
        {
            if (DBTransaction == null)
            {
                throw new Exception("Transaction 对象不存在");
            }
            await DBTransaction.CommitAsync();

            await DBTransaction.DisposeAsync();

            DBTransaction = null;
        }