mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 22:25:49 +08:00
Add db.Ado.IsNoTran
This commit is contained in:
@@ -187,6 +187,10 @@ namespace SqlSugar
|
||||
{
|
||||
return this.Transaction != null;
|
||||
}
|
||||
public virtual bool IsNoTran()
|
||||
{
|
||||
return this.Transaction == null;
|
||||
}
|
||||
public virtual void BeginTran()
|
||||
{
|
||||
CheckConnection();
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace SqlSugar
|
||||
void ExecuteBefore(string sql, SugarParameter[] pars);
|
||||
void ExecuteAfter(string sql, SugarParameter[] pars);
|
||||
bool IsAnyTran();
|
||||
|
||||
bool IsNoTran();
|
||||
bool IsEnableLogEvent{get;set;}
|
||||
StackTraceInfo SqlStackTrace { get; }
|
||||
IDataParameterCollection DataReaderParameters { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user