Skip to content

Support filtered Include in Projection (Filter the entity graph) #59

@JakobWl

Description

@JakobWl
var products = _context.Project<Product, ProductDto>(_context.Products
          .Include(x => x.Customers.Where(x => x.CustomerId == parameters.CustomerId)));

I wonder if there is a way to do what i want to do. Because due to its nature Project will load the entire graph, but I only want the ones where my condition matches.

Even if it already exists and i dont see it this would be a very nice feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions