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
e468d3d6d8
commit
5c7f0b1672
@ -102,10 +102,16 @@ namespace OrmTest
|
||||
|
||||
db.QueryFilter.Clear();
|
||||
List<int> tags = new List<int>() {1, 2 };
|
||||
db.Queryable<OperatorInfo>()
|
||||
var list5=db.Queryable<OperatorInfo>()
|
||||
.Includes(x => x.Roles)
|
||||
.Where(x => x.Roles.Any(s=> tags.Contains(s.id)))
|
||||
.ToList();
|
||||
|
||||
var list6 = db.Queryable<OperatorInfo>()
|
||||
.Includes(x => x.Roles)
|
||||
.LeftJoin<OperatorInfo>((x, y) => x.id == y.id)
|
||||
.Where(x => x.Roles.Any(s => tags.Contains(s.id)))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user