我有以下使用 linq 方法语法的查询
IEnumerable<PageElement> elements_test = ObjectContext.PageElements
.Where(_dateDebutCheck).Where(_dateFinCheck)
.Where(_activeLanguageCheck(language));
private readonly Expression<Func<PageElement, bool>> _dateDebutCheck = pe => pe.DateDebut.HasValue && pe.DateDebut.Value <= DateTime.Now;
private readonly Expression<Func<PageElement, bool>> _dateFinCheck = pe => !pe.DateFin.HasValue || pe.DateFin.Value > DateTime.Now;
private readonly Expression<Func<PageElement, byte, bool>> _activeLanguageCheck =
(pe, lang) => pe.PageElementLanguages.Where(y => y.Active).Select(y => y.LanguageId).Contains(lang);
对于不带参数的前 2 个表达式,语法似乎是正确的,如何在 Where 子句中使用语言参数调用第三个表达式?