Update Select Json Bug

This commit is contained in:
skx
2020-11-15 13:26:11 +08:00
parent ccfd52d223
commit f2adb90d43
3 changed files with 22 additions and 9 deletions

View File

@@ -100,13 +100,11 @@ namespace OrmTest.Test
});
db.Aop.OnError = (exp) =>//SQL报错
db.Aop.OnLogExecuted = (s,p) =>//SQL报错
{
string sql = exp.Sql;
//exp.sql 这样可以拿到错误SQL
Console.WriteLine(s);
};
@@ -154,9 +152,8 @@ namespace OrmTest.Test
{
User = a,
Items = a.UserDpt
User = a ,
de=a.UserDpt
}).ToList();