|
@ -217,6 +217,14 @@ namespace SqlSugar |
|
|
if (this.Transaction == null) |
|
|
if (this.Transaction == null) |
|
|
this.Transaction =await (this.Connection as DbConnection).BeginTransactionAsync(); |
|
|
this.Transaction =await (this.Connection as DbConnection).BeginTransactionAsync(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public virtual async Task BeginTranAsync(IsolationLevel iso) |
|
|
|
|
|
{ |
|
|
|
|
|
await CheckConnectionAsync(); |
|
|
|
|
|
if (this.Transaction == null) |
|
|
|
|
|
this.Transaction =await (this.Connection as DbConnection).BeginTransactionAsync(iso); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public virtual void BeginTran(IsolationLevel iso) |
|
|
public virtual void BeginTran(IsolationLevel iso) |
|
|
{ |
|
|
{ |
|
|
CheckConnection(); |
|
|
CheckConnection(); |
|
|