Skip to content

Run complex queries on the Repository and still take advantage of caching, etc. #62

Description

@jtreuting

If there is a query that is more complicated than fits into the FindAll using a selector method like mentioned in issue #59, a way around it is to create SomeCustomRepository : Ef5Repository, and get access to the DbContext property yourself to run your own query. But when doing that, there is no way to take advantage of the cache.

Let's see if there is a way that the user creating the custom repository can pass the query in and use a caching strategy if there is one setup.

Maybe a Query(IQueryable<>) method would be useful? Haven't thought that thru yet but worth looking at.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions