mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
vat code
This commit is contained in:
@@ -200,12 +200,10 @@ namespace SqlSugar
|
|||||||
var result = new DbResult<bool>();
|
var result = new DbResult<bool>();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var isAutoConfig = this.Context.CurrentConnectionConfig.IsAutoCloseConnection;
|
|
||||||
this.BeginTran();
|
this.BeginTran();
|
||||||
if (action != null)
|
if (action != null)
|
||||||
action();
|
action();
|
||||||
this.CommitTran();
|
this.CommitTran();
|
||||||
this.Context.CurrentConnectionConfig.IsAutoCloseConnection = isAutoConfig;
|
|
||||||
result.Data = result.IsSuccess = true;
|
result.Data = result.IsSuccess = true;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
Reference in New Issue
Block a user