问题 This is the method in my generic repository: public async Task<TEntity> GetByCondition(Expression<Func<TEntity, bool>> predicate, Func<DbSet<TEntity>, IQueryable<TEntity>> baseQuery = null) { IQueryable<TEntity> q = _context.Set<TEntity>(); if (baseQuery != null) { q = baseQuery(_context.Set<TEntity>()); } return await q.Where(predicate).FirstOrDefaultAsync(); } This is the usage in my business logic: Expression<Func<Countries, bool>> whereExpr = x => x.SlugHebrew == slug || x.SlugEnglish ==