Update json

This commit is contained in:
sunkaixuna
2021-12-18 18:40:13 +08:00
parent 936936154a
commit 35b7926944
3 changed files with 26 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ namespace OrmTest
});
db.CodeFirst.InitTables<Test2>();
db.DbMaintenance.TruncateTable<Test2>();
//用例代码
db.Insertable(new Test2() { p = "1" }).ExecuteCommand();//用例代码

View File

@@ -26,6 +26,14 @@ namespace OrmTest
.SetColumns(it => it.Name=="a")
.Where(it=>it.Id==1)
.ExecuteCommand();
var list3=Db.Queryable<UnitJsonTest>().Select(it => new
{
x = it
}).ToList();
if (list3[0].x == null)
{
throw new Exception("unit error");
}
}
}