瀏覽代碼

fix DotNetCore.CAP.PostgreSql.CapEFDbTransaction RollbackAsync Method. (#640)

master
谷草` 4 年之前
committed by GitHub
父節點
當前提交
d63fedccda
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/DotNetCore.CAP.PostgreSql/IDbContextTransaction.CAP.cs

+ 2
- 2
src/DotNetCore.CAP.PostgreSql/IDbContextTransaction.CAP.cs 查看文件

@@ -16,7 +16,7 @@ namespace Microsoft.EntityFrameworkCore.Storage
public CapEFDbTransaction(ICapTransaction transaction)
{
_transaction = transaction;
var dbContextTransaction = (IDbContextTransaction) _transaction.DbTransaction;
var dbContextTransaction = (IDbContextTransaction)_transaction.DbTransaction;
TransactionId = dbContextTransaction.TransactionId;
}

@@ -42,7 +42,7 @@ namespace Microsoft.EntityFrameworkCore.Storage

public Task RollbackAsync(CancellationToken cancellationToken = default)
{
return _transaction.CommitAsync(cancellationToken);
return _transaction.RollbackAsync(cancellationToken);
}

public Guid TransactionId { get; }


Loading…
取消
儲存