Using the following example i would like to use my Expression inside my Contains method, having it pass the query onto sql server using the EF.
Expression
EF
try Expression.Compile() method:
return items.Where(item => validComps.Contains(resolveCompanyExpression.Compile()(item))).AsQueryable();