mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
An asynchronous approach that refines previous functionality
This commit is contained in:
@@ -584,6 +584,7 @@ namespace SqlSugar
|
|||||||
count=await sqlCommand.ExecuteNonQueryAsync(this.CancellationToken.Value);
|
count=await sqlCommand.ExecuteNonQueryAsync(this.CancellationToken.Value);
|
||||||
if (this.IsClearParameters)
|
if (this.IsClearParameters)
|
||||||
sqlCommand.Parameters.Clear();
|
sqlCommand.Parameters.Clear();
|
||||||
|
this.SqlExecuteCount = count;
|
||||||
ExecuteAfter(sql, parameters);
|
ExecuteAfter(sql, parameters);
|
||||||
sqlCommand.Dispose();
|
sqlCommand.Dispose();
|
||||||
return count;
|
return count;
|
||||||
|
@@ -584,6 +584,7 @@ namespace SqlSugar
|
|||||||
count=await sqlCommand.ExecuteNonQueryAsync(this.CancellationToken.Value);
|
count=await sqlCommand.ExecuteNonQueryAsync(this.CancellationToken.Value);
|
||||||
if (this.IsClearParameters)
|
if (this.IsClearParameters)
|
||||||
sqlCommand.Parameters.Clear();
|
sqlCommand.Parameters.Clear();
|
||||||
|
this.SqlExecuteCount = count;
|
||||||
ExecuteAfter(sql, parameters);
|
ExecuteAfter(sql, parameters);
|
||||||
sqlCommand.Dispose();
|
sqlCommand.Dispose();
|
||||||
return count;
|
return count;
|
||||||
|
Reference in New Issue
Block a user