Browse Source

Update demo

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
da4e440372
  1. 3
      Src/Asp.Net/SqlServerTest/Demo/DemoB_Aop.cs

3
Src/Asp.Net/SqlServerTest/Demo/DemoB_Aop.cs

@ -47,6 +47,7 @@ namespace OrmTest
var businessData = it.BusinessData; var businessData = it.BusinessData;
var time = it.Time; var time = it.Time;
var diffType = it.DiffType;//enum insert 、update and delete var diffType = it.DiffType;//enum insert 、update and delete
Console.WriteLine(businessData);
Console.WriteLine(editBeforeData[0].Columns[1].Value); Console.WriteLine(editBeforeData[0].Columns[1].Value);
Console.WriteLine("to"); Console.WriteLine("to");
Console.WriteLine(editAfterData[0].Columns[1].Value); Console.WriteLine(editAfterData[0].Columns[1].Value);
@ -62,7 +63,7 @@ namespace OrmTest
//OnDiffLogEvent //OnDiffLogEvent
var data = db.Queryable<Order>().First(); var data = db.Queryable<Order>().First();
data.Name = "changeName"; data.Name = "changeName";
db.Updateable(data).EnableDiffLogEvent().ExecuteCommand(); db.Updateable(data).EnableDiffLogEvent("--update Order--").ExecuteCommand();
Console.WriteLine("#### Aop End ####"); Console.WriteLine("#### Aop End ####");
} }

Loading…
Cancel
Save