diff --git a/Src/Asp.Net/SqlServerTest/Demo/DemoB_Aop.cs b/Src/Asp.Net/SqlServerTest/Demo/DemoB_Aop.cs index 000a55365..819be96c7 100644 --- a/Src/Asp.Net/SqlServerTest/Demo/DemoB_Aop.cs +++ b/Src/Asp.Net/SqlServerTest/Demo/DemoB_Aop.cs @@ -47,6 +47,7 @@ namespace OrmTest var businessData = it.BusinessData; var time = it.Time; var diffType = it.DiffType;//enum insert 、update and delete + Console.WriteLine(businessData); Console.WriteLine(editBeforeData[0].Columns[1].Value); Console.WriteLine("to"); Console.WriteLine(editAfterData[0].Columns[1].Value); @@ -62,7 +63,7 @@ namespace OrmTest //OnDiffLogEvent var data = db.Queryable().First(); data.Name = "changeName"; - db.Updateable(data).EnableDiffLogEvent().ExecuteCommand(); + db.Updateable(data).EnableDiffLogEvent("--update Order--").ExecuteCommand(); Console.WriteLine("#### Aop End ####"); }