|
@ -924,12 +924,24 @@ namespace SqlSugar |
|
|
AllClientEach(it => it.Ado.BeginTran()); |
|
|
AllClientEach(it => it.Ado.BeginTran()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void BeginTran(IsolationLevel iso) |
|
|
|
|
|
{ |
|
|
|
|
|
_IsAllTran = true; |
|
|
|
|
|
AllClientEach(it => it.Ado.BeginTran(iso)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public async Task BeginTranAsync() |
|
|
public async Task BeginTranAsync() |
|
|
{ |
|
|
{ |
|
|
_IsAllTran = true; |
|
|
_IsAllTran = true; |
|
|
await AllClientEachAsync(async it => await it.Ado.BeginTranAsync()); |
|
|
await AllClientEachAsync(async it => await it.Ado.BeginTranAsync()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public async Task BeginTranAsync(IsolationLevel iso) |
|
|
|
|
|
{ |
|
|
|
|
|
_IsAllTran = true; |
|
|
|
|
|
await AllClientEachAsync(async it => await it.Ado.BeginTranAsync(iso)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public void CommitTran() |
|
|
public void CommitTran() |
|
|
{ |
|
|
{ |
|
|
this.Context.Ado.CommitTran(); |
|
|
this.Context.Ado.CommitTran(); |
|
|