create expression func c# for use in where clause
private Expression<Func<PageElement, bool>> ActiveLanguageCheck(byte lang) {
return pe => pe.PageElementLanguages.Where(
y => y.Active).Select(y => y.LanguageId).Contains(lang);
}