diff --git a/src/DotNetCore.CAP.MySql/IDbContextTransaction.CAP.cs b/src/DotNetCore.CAP.MySql/IDbContextTransaction.CAP.cs index 85a36b2..8fc7fd0 100644 --- a/src/DotNetCore.CAP.MySql/IDbContextTransaction.CAP.cs +++ b/src/DotNetCore.CAP.MySql/IDbContextTransaction.CAP.cs @@ -45,7 +45,7 @@ namespace Microsoft.EntityFrameworkCore.Storage public Task RollbackAsync(CancellationToken cancellationToken = default) { - return _transaction.CommitAsync(cancellationToken); + return _transaction.RollbackAsync(cancellationToken); } public ValueTask DisposeAsync() @@ -54,4 +54,4 @@ namespace Microsoft.EntityFrameworkCore.Storage return new ValueTask(); } } -} \ No newline at end of file +}