Add user case test

This commit is contained in:
sunkaixuan 2024-02-21 19:11:00 +08:00
parent 3c6ec54abd
commit 20b9c7f336

View File

@ -66,10 +66,17 @@ namespace OrmTest
{ {
throw new Exception("unit error"); throw new Exception("unit error");
} }
Db.CodeFirst.InitTables<UnutBoolTestaaa>();
var list4 =
Db.Queryable<UnutBoolTestaaa>()
.Where(Db.Utilities.JsonToConditionalModels(json)).ToList();
} }
} }
public class UnutBoolTestaaa
{
public bool nullableBool { get; set; }
}
public class UnitJsonTest public class UnitJsonTest
{ {
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)] [SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]