Explorar el Código

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

master
谷草` hace 4 años
committed by GitHub
padre
commit
d63fedccda
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/DotNetCore.CAP.PostgreSql/IDbContextTransaction.CAP.cs

+ 2
- 2
src/DotNetCore.CAP.PostgreSql/IDbContextTransaction.CAP.cs Ver fichero

@@ -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; }


Cargando…
Cancelar
Guardar