|
@ -45,7 +45,7 @@ namespace SqlSugar |
|
|
{ |
|
|
{ |
|
|
this.Context.Ado.BeginTran(); |
|
|
this.Context.Ado.BeginTran(); |
|
|
var result = await _ExecuteCommandAsync(); |
|
|
var result = await _ExecuteCommandAsync(); |
|
|
this.Context.Ado.BeginTran(); |
|
|
this.Context.Ado.CommitTran(); |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
@ -91,7 +91,7 @@ namespace SqlSugar |
|
|
{ |
|
|
{ |
|
|
this.Context.Ado.BeginTran(); |
|
|
this.Context.Ado.BeginTran(); |
|
|
var result = await _ExecuteReturnSnowflakeIdListAsync(); |
|
|
var result = await _ExecuteReturnSnowflakeIdListAsync(); |
|
|
this.Context.Ado.BeginTran(); |
|
|
this.Context.Ado.CommitTran(); |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
|