Add EnableDiffLogEvent

This commit is contained in:
sunkaixuan
2018-11-13 00:35:42 +08:00
parent 07c9f1d62a
commit c70fd929e7
7 changed files with 53 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
using SqlSugar;
using OrmTest.Models;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -40,6 +41,19 @@ namespace OrmTest.Demo
}
//diff log demo
db.Ado.DiffLogEvent = it =>
{
var editBeforeData = it.BeforeData;
var editAfterData = it.AfterDate;
var sql = it.Sql;
var parameter = it.Parameters;
};
db.Updateable<Student>().EnableDiffLogEvent().ExecuteCommand();
}
}