diff --git a/src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs b/src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs index 7d228e5..5a0bef8 100644 --- a/src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs +++ b/src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs @@ -7,7 +7,9 @@ namespace DotNetCore.CAP { public class MySqlCapTransaction : CapTransactionBase { - public MySqlCapTransaction(IDispatcher dispatcher) : base(dispatcher) { } + public MySqlCapTransaction(IDispatcher dispatcher) : base(dispatcher) + { + } public override void Commit() { @@ -49,16 +51,6 @@ namespace DotNetCore.CAP public static class CapTransactionExtensions { - public static ICapTransaction Begin(this ICapTransaction transaction, - IDbTransaction dbTransaction, bool autoCommit = false) - { - - transaction.DbTransaction = dbTransaction; - transaction.AutoCommit = autoCommit; - - return transaction; - } - public static ICapTransaction Begin(this ICapTransaction transaction, IDbContextTransaction dbTransaction, bool autoCommit = false) { @@ -69,5 +61,4 @@ namespace DotNetCore.CAP return transaction; } } - -} +} \ No newline at end of file