mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 12:09:29 +08:00
Update user test case
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user