little work

This commit is contained in:
2020-08-03 22:41:50 +02:00
parent 17f3274abc
commit 8eace42aaa
2 changed files with 5 additions and 2 deletions

View File

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