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