瀏覽代碼

update extension impl

master
Savorboard 6 年之前
父節點
當前提交
401cc6f099
共有 1 個文件被更改,包括 4 次插入13 次删除
  1. +4
    -13
      src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs

+ 4
- 13
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;
}
}

}
}

Loading…
取消
儲存