mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Add unit test
This commit is contained in:
parent
fe2d7f4f99
commit
e3947923c0
@ -98,6 +98,13 @@ namespace OrmTest
|
||||
db.Queryable<OperatorInfo>()
|
||||
.Includes(x => x.Roles)
|
||||
.Where(x => x.Roles.Any() || x.Roles.Any())
|
||||
.ToList();
|
||||
|
||||
db.QueryFilter.Clear();
|
||||
List<int> tags = new List<int>() {1, 2 };
|
||||
db.Queryable<OperatorInfo>()
|
||||
.Includes(x => x.Roles)
|
||||
.Where(x => x.Roles.Any(s=> tags.Contains(s.id)))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user