Update unit test

This commit is contained in:
sunkaixuan
2022-10-05 10:12:22 +08:00
parent 1e12b762f6
commit 1f972f74e2
2 changed files with 5 additions and 4 deletions

View File

@@ -29,8 +29,9 @@ namespace OrmTest
db.GetConnection("B").Insertable(new Role() { id=101, name="B"}).ExecuteCommand();
db.GetConnection("AB").Insertable(new OptRole() { id=1, operId=10, roleId=101}).ExecuteCommand();
var x=db.Queryable<OperatorInfo>()
.CrossQueryWithAttr().Includes(z => z.Roles).ToList();
var x=db.QueryableWithAttr<OperatorInfo>()
//.CrossQueryWithAttr()
.Includes(z => z.Roles).ToList();
if (x.First().Roles.Count == 0)
{