mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
Synchronization code
This commit is contained in:
@@ -217,20 +217,18 @@ namespace SqlSugar
|
||||
if (this.Transaction == null)
|
||||
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)
|
||||
{
|
||||
CheckConnection();
|
||||
if (this.Transaction == null)
|
||||
this.Transaction = this.Connection.BeginTransaction(iso);
|
||||
}
|
||||
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 RollbackTran()
|
||||
{
|
||||
if (this.Transaction != null)
|
||||
|
Reference in New Issue
Block a user