Add unit test

This commit is contained in:
sunkaixuan 2023-08-12 18:56:26 +08:00
parent fe2d7f4f99
commit e3947923c0

View File

@ -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();
}