Update unit test

This commit is contained in:
sunkaixuan
2022-04-25 13:59:14 +08:00
parent 7863ba85f0
commit f11b38f4e8
2 changed files with 9 additions and 3 deletions

View File

@@ -13,8 +13,11 @@ namespace OrmTest
var db = NewUnitTest.Db;
db.CodeFirst.InitTables<OperatorInfo, Role, OptRole>();
db.Queryable<OperatorInfo>()
.Includes(x => x.Roles).Where(x => x.Roles.Any())
.Includes(x => x.Roles).Where(x => x.Roles.Any(z=>z.id==1))
.ToList();
db.Queryable<OperatorInfo>()
.Includes(x => x.Roles).Where(x => x.Roles.Any())
.ToList();
}
/// <summary>