Skip to content

Include not working #37

@Christian-GSlate

Description

@Christian-GSlate

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();
    }`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions