mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-25 01:14:33 +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");
|
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")]
|
[SugarTable("unitaser13231")]
|
||||||
public class UserInfo
|
public class UserInfo
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user