Include is not working when used as an Expression.
Here the example code to reproduce the problem:
`public T Get(Expression<Func<T, bool>> predicate, params Expression<Func<T, object>>[] includes)
{
IQueryable query = _set;
query = query.Where(predicate);
if (includes != null && includes.Length > 0)
foreach (var include in includes)
query = query.Include(include);
return query.FirstOrDefault();
}`
Include is not working when used as an Expression.
Here the example code to reproduce the problem:
`public T Get(Expression<Func<T, bool>> predicate, params Expression<Func<T, object>>[] includes)
{
IQueryable query = _set;