From 401cc6f0998de4150e82493558810b24a33bb8ca Mon Sep 17 00:00:00 2001 From: Savorboard Date: Mon, 20 Aug 2018 18:54:54 +0800 Subject: [PATCH] update extension impl --- .../ICapTransaction.MySql.cs | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) 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