This commit is contained in:
sunkaixuan 2018-11-22 00:40:32 +08:00
parent 4db7b38131
commit e250abf4c2
2 changed files with 4 additions and 2 deletions

View File

@ -357,7 +357,8 @@ namespace SqlSugar
parameters = new List<SugarParameter>();
diffModel.AfterDate = null;
diffModel.Time = this.Context.Ado.SqlExecutionTime;
this.Context.Ado.DiffLogEvent(diffModel);
if (this.Context.Ado.DiffLogEvent != null)
this.Context.Ado.DiffLogEvent(diffModel);
}
}

View File

@ -562,7 +562,8 @@ namespace SqlSugar
parameters = new List<SugarParameter>();
diffModel.AfterDate = GetDiffTable(sql, parameters);
diffModel.Time = this.Context.Ado.SqlExecutionTime;
this.Context.Ado.DiffLogEvent(diffModel);
if (this.Context.Ado.DiffLogEvent != null)
this.Context.Ado.DiffLogEvent(diffModel);
}
}