| | |
| | | |
| | | public virtual async Task<List<TEntity>> QueryDataNavAsync(Expression<Func<TEntity, bool>> whereExpression) |
| | | { |
| | | return await _db.Queryable<TEntity>().IncludesAllFirstLayer().ToListAsync(); |
| | | return await _db.Queryable<TEntity>() |
| | | .Where(whereExpression) |
| | | .IncludesAllFirstLayer() |
| | | .ToListAsync(); |
| | | } |
| | | |
| | | public virtual async Task<TEntity> QueryDataNavFirstAsync(Expression<Func<TEntity, bool>> whereExpression) |
| | | { |
| | | return await _db.Queryable<TEntity>().IncludesAllFirstLayer().FirstAsync(); |
| | | return await _db.Queryable<TEntity>() |
| | | .Where(whereExpression) |
| | | .IncludesAllFirstLayer() |
| | | .FirstAsync(); |
| | | } |
| | | |
| | | //List<TResult> QueryMuch<T, T2, T3, TResult>( |