Update Demo

This commit is contained in:
sunkaixuan
2017-09-19 02:41:23 +08:00
parent 723517693e
commit 53409f5b3a
6 changed files with 10 additions and 7 deletions

View File

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