This commit is contained in:
610262374@qq.com
2017-03-11 09:51:58 +08:00
parent 77c7329bae
commit 1e377d1119
2 changed files with 13 additions and 1 deletions

View File

@@ -29,6 +29,11 @@ namespace OrmTest.UnitTest
{
using (var db = GetInstance())
{
db.Database.IsEnableLogEvent = true;
db.Database.LogEventStarting = (sql,pars) =>
{
Console.WriteLine(sql+" " + pars);
};
//var list = db.Queryable<Student>()
// .Where(st => st.Id > 0)