diff --git a/Src/Asp.Net/SqlServerTest/Demos/9_Aop.cs b/Src/Asp.Net/SqlServerTest/Demos/9_Aop.cs index d5c6bf377..66dd07d45 100644 --- a/Src/Asp.Net/SqlServerTest/Demos/9_Aop.cs +++ b/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; diff --git a/Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs index 0e81aac48..e68e67c07 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs @@ -389,7 +389,7 @@ namespace SqlSugar var parameters = DeleteBuilder.Parameters; if (parameters == null) parameters = new List(); - diffModel.AfterDate = null; + diffModel.AfterData = null; diffModel.Time = this.Context.Ado.SqlExecutionTime; if (this.Context.Ado.DiffLogEvent != null) this.Context.Ado.DiffLogEvent(diffModel); diff --git a/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs index 197d91f5d..a55229561 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs @@ -425,7 +425,7 @@ namespace SqlSugar var parameters = InsertBuilder.Parameters; if (parameters == null) parameters = new List(); - 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); diff --git a/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs index e89718e80..8ba0f4f60 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs @@ -560,7 +560,7 @@ namespace SqlSugar var parameters = UpdateBuilder.Parameters; if (parameters == null) parameters = new List(); - 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); diff --git a/Src/Asp.Net/SqlSugar/Entities/DiffLogModel.cs b/Src/Asp.Net/SqlSugar/Entities/DiffLogModel.cs index 40f972d84..d8ae772a5 100644 --- a/Src/Asp.Net/SqlSugar/Entities/DiffLogModel.cs +++ b/Src/Asp.Net/SqlSugar/Entities/DiffLogModel.cs @@ -7,7 +7,7 @@ namespace SqlSugar { public class DiffLogModel { - public List AfterDate { get; set; } + public List AfterData { get; set; } public List BeforeData { get; set; } public SugarParameter[] Parameters { get; set; } public string Sql { get; set; }