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

@@ -72,8 +72,7 @@ namespace OrmTest.UnitTest
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.Sqlite });
db.Ado.IsEnableLogEvent = true;
db.Ado.LogEventStarting = (sql, pars) =>
db.Aop.OnLogExecuting = (sql, pars) =>
{
Console.WriteLine(sql + " " + pars);
};