little work
This commit is contained in:
@ -24,7 +24,7 @@ namespace UserService.DatabaseLayer.Repository
|
||||
await using var db = new UserServiceDbContext();
|
||||
|
||||
IQueryable<T> queryable = Context(db).Include(x => x.Parent);
|
||||
if(queryable != null) queryable = queryable.Where(predicate);
|
||||
if(predicate != null) queryable = queryable.Where(predicate);
|
||||
return await queryable.ToListAsync(token);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user