mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update user test case
This commit is contained in:
parent
3ce21eff43
commit
799cbf9a07
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user