Add: db.Ado.SqlExecuteType

This commit is contained in:
sunkaixuan 2025-05-22 16:12:55 +08:00
parent c2aa975b08
commit 0a1326506d
2 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@ namespace SqlSugar
/// Add, delete and modify: the number of affected items;
/// </summary>
public int SqlExecuteCount { get; protected set; } = 0;
public SugarActionType SqlExecuteType { get=> this.Context.SugarActionType;}
public StackTraceInfo SqlStackTrace { get { return UtilMethods.GetStackTrace(); } }
public bool IsDisableMasterSlaveSeparation { get; set; }
internal DateTime BeforeTime = DateTime.MinValue;

View File

@ -37,6 +37,7 @@ namespace SqlSugar
TimeSpan SqlExecutionTime { get; }
TimeSpan ConnectionExecutionTime { get; }
int SqlExecuteCount { get; }
SugarActionType SqlExecuteType { get;}
IDbBind DbBind { get; }
void SetCommandToAdapter(IDataAdapter adapter, DbCommand command);
IDataAdapter GetAdapter();