소스 검색

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

master
谷草` 4 년 전
committed by GitHub
부모
커밋
d63fedccda
No known key found for this signature in database GPG 키 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; }


불러오는 중...
취소
저장