Update user test case

This commit is contained in:
sunkaixuan 2024-03-28 17:00:55 +08:00
parent 3ce21eff43
commit 799cbf9a07

View File

@ -49,8 +49,20 @@ namespace OrmTest
{
throw new Exception("unit error");
}
db.CodeFirst.InitTables<UnitBooladfa>();
List<bool?> bools = new List<bool?>() { true,false };
db.Queryable<UnitBooladfa>().Where(it => bools.Contains(it.Bool)).ToList();
if(!db.Queryable<UnitBooladfa>().Where(it => bools.Contains(it.Bool)).ToSqlString().Contains("1,0"))
{
throw new Exception("unit error");
}
}
}
public class UnitBooladfa
{
public bool? Bool { get; set; }
}
[SugarTable("unitaser13231")]
public class UserInfo
{