mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update SqlExecuteCount
This commit is contained in:
@@ -46,7 +46,7 @@ namespace SqlSugar
|
||||
/// <summary>
|
||||
/// Add, delete and modify: the number of affected items;
|
||||
/// </summary>
|
||||
public int SqlExecuteCount { get; private set; } = 0;
|
||||
public int SqlExecuteCount { get; protected set; } = 0;
|
||||
public StackTraceInfo SqlStackTrace { get { return UtilMethods.GetStackTrace(); } }
|
||||
public bool IsDisableMasterSlaveSeparation { get; set; }
|
||||
internal DateTime BeforeTime = DateTime.MinValue;
|
||||
|
@@ -218,6 +218,7 @@ namespace SqlSugar
|
||||
count = await sqlCommand.ExecuteNonQueryAsync(this.CancellationToken.Value);
|
||||
if (this.IsClearParameters)
|
||||
sqlCommand.Parameters.Clear();
|
||||
SqlExecuteCount = count;
|
||||
ExecuteAfter(sql, parameters);
|
||||
sqlCommand.Dispose();
|
||||
return count;
|
||||
|
Reference in New Issue
Block a user