mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Code optimization
This commit is contained in:
@@ -38,9 +38,9 @@ namespace OrmTest
|
||||
db.Queryable<OperatorInfo>()
|
||||
.Includes(x => x.Roles).Where(x => x.Roles.Any(z=>z.id==1))
|
||||
.ToList();
|
||||
db.Queryable<OperatorInfo>()
|
||||
var list=db.Queryable<OperatorInfo>()
|
||||
.Includes(x => x.Roles).Where(x => x.Roles.Any())
|
||||
.ToList();
|
||||
.ToListAsync().GetAwaiter().GetResult();
|
||||
//db.Queryable<OperatorInfo>()
|
||||
// .Includes(x => x.Roles.Where(z=>z.name==x.realname).ToList())
|
||||
// .ToList();
|
||||
|
Reference in New Issue
Block a user