From 20b9c7f3361a75faffcff9f0075a63734feb7580 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 21 Feb 2024 19:11:00 +0800 Subject: [PATCH] Add user case test --- Src/Asp.NetCore2/SqliteTest/UserTestCases/UJson.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqliteTest/UserTestCases/UJson.cs b/Src/Asp.NetCore2/SqliteTest/UserTestCases/UJson.cs index d52efcdae..d76763cf5 100644 --- a/Src/Asp.NetCore2/SqliteTest/UserTestCases/UJson.cs +++ b/Src/Asp.NetCore2/SqliteTest/UserTestCases/UJson.cs @@ -66,10 +66,17 @@ namespace OrmTest { throw new Exception("unit error"); } + Db.CodeFirst.InitTables(); + var list4 = + Db.Queryable() + .Where(Db.Utilities.JsonToConditionalModels(json)).ToList(); } } - + public class UnutBoolTestaaa + { + public bool nullableBool { get; set; } + } public class UnitJsonTest { [SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]