Browse Source

rename

pull/12/MERGE
610262374@qq.com 6 years ago
parent
commit
169ee5578b
  1. 2
      Src/Asp.Net/SqlServerTest/Demos/9_Aop.cs
  2. 2
      Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs
  3. 2
      Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs
  4. 2
      Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs
  5. 2
      Src/Asp.Net/SqlSugar/Entities/DiffLogModel.cs

2
Src/Asp.Net/SqlServerTest/Demos/9_Aop.cs

@ -50,7 +50,7 @@ namespace OrmTest.Demo
db.Aop.OnDiffLogEvent = it =>
{
var editBeforeData = it.BeforeData;
var editAfterData = it.AfterDate;
var editAfterData = it.AfterData;
var sql = it.Sql;
var parameter = it.Parameters;
var data = it.BusinessData;

2
Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs

@ -389,7 +389,7 @@ namespace SqlSugar
var parameters = DeleteBuilder.Parameters;
if (parameters == null)
parameters = new List<SugarParameter>();
diffModel.AfterDate = null;
diffModel.AfterData = null;
diffModel.Time = this.Context.Ado.SqlExecutionTime;
if (this.Context.Ado.DiffLogEvent != null)
this.Context.Ado.DiffLogEvent(diffModel);

2
Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs

@ -425,7 +425,7 @@ namespace SqlSugar
var parameters = InsertBuilder.Parameters;
if (parameters == null)
parameters = new List<SugarParameter>();
diffModel.AfterDate = GetDiffTable(sql,result);
diffModel.AfterData = GetDiffTable(sql,result);
diffModel.Time = this.Context.Ado.SqlExecutionTime;
if (this.Context.Ado.DiffLogEvent != null)
this.Context.Ado.DiffLogEvent(diffModel);

2
Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs

@ -560,7 +560,7 @@ namespace SqlSugar
var parameters = UpdateBuilder.Parameters;
if (parameters == null)
parameters = new List<SugarParameter>();
diffModel.AfterDate = GetDiffTable(sql, parameters);
diffModel.AfterData = GetDiffTable(sql, parameters);
diffModel.Time = this.Context.Ado.SqlExecutionTime;
if (this.Context.Ado.DiffLogEvent != null)
this.Context.Ado.DiffLogEvent(diffModel);

2
Src/Asp.Net/SqlSugar/Entities/DiffLogModel.cs

@ -7,7 +7,7 @@ namespace SqlSugar
{
public class DiffLogModel
{
public List<DiffLogTableInfo> AfterDate { get; set; }
public List<DiffLogTableInfo> AfterData { get; set; }
public List<DiffLogTableInfo> BeforeData { get; set; }
public SugarParameter[] Parameters { get; set; }
public string Sql { get; set; }

Loading…
Cancel
Save