This commit is contained in:
sunkaixuan
2017-09-20 15:29:43 +08:00
parent bf34aa39c0
commit 074b367248
4 changed files with 12 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ namespace OrmTest.Demo
db.Ado.IsEnableLogEvent = true;
db.Ado.LogEventStarting = (sql, pars) =>
{
Console.WriteLine(sql + "\r\n" + pars);
Console.WriteLine(sql + "\r\n" + db.Utilities.SerializeObject(pars.ToDictionary(s => s.ParameterName, s => s.Value)));
Console.WriteLine();
};
return db;