mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-25 10:19:17 +08:00
Update json
This commit is contained in:
@@ -18,7 +18,7 @@ namespace OrmTest
|
||||
});
|
||||
|
||||
db.CodeFirst.InitTables<Test2>();
|
||||
|
||||
db.DbMaintenance.TruncateTable<Test2>();
|
||||
//用例代码
|
||||
db.Insertable(new Test2() { p = "1" }).ExecuteCommand();//用例代码
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user