Code optimization

This commit is contained in:
sunkaixuan
2019-05-07 17:26:19 +08:00
parent 38c4c81fe3
commit 06b51a5f4e
10 changed files with 153 additions and 158 deletions

View File

@@ -30,7 +30,7 @@ namespace OrmTest.UnitTest
using (var db = GetInstance())
{
//db.Database.IsEnableLogEvent = true;
db.Ado.LogEventStarting = (sql, pars) =>
db.Aop.OnLogExecuting = (sql, pars) =>
{
Console.WriteLine(sql + " " + pars);
};